maix.ext_dev.bm8563
maix.ext_dev.bm8563 module
You can use
maix.ext_dev.bm8563
to access this module with MaixPy
This module is generated from MaixPy and MaixCDK
Module
No module
Enum
Variable
Function
Class
BM8563
Peripheral BM8563 class
C++ defination code:
class BM8563
__init__
def __init__(self, i2c_bus: int = -1) -> None
BM8563 constructor
item | description |
---|---|
type | func |
param | i2c_bus: i2c bus number. |
static | False |
C++ defination code:
BM8563(int i2c_bus=-1)
datetime
def datetime(self, timetuple: list[int] = []) -> list[int]
Get or set the date and time of the BM8563.
item | description |
---|---|
type | func |
param | timetuple: time tuple, like (year, month, day[, hour[, minute[, second]]]) |
return | time tuple, like (year, month, day[, hour[, minute[, second]]]) |
static | False |
C++ defination code:
std::vector<int> datetime(std::vector<int> timetuple=std::vector<int>())
init
def init(self, timetuple: list[int]) -> maix.err.Err
Initialise the BM8563.
item | description |
---|---|
type | func |
param | timetuple: time tuple, like (year, month, day[, hour[, minute[, second]]]) |
return | err::Err type, if init success, return err::ERR_NONE |
static | False |
C++ defination code:
err::Err init(std::vector<int> timetuple)
now
def now(self) -> list[int]
Get get the current datetime.
item | description |
---|---|
type | func |
return | time tuple, like (year, month, day[, hour[, minute[, second]]]) |
static | False |
C++ defination code:
std::vector<int> now()
deinit
def deinit(self) -> maix.err.Err
Deinit the BM8563.
item | description |
---|---|
type | func |
return | err::Err err::Err type, if deinit success, return err::ERR_NONE |
static | False |
C++ defination code:
err::Err deinit()
hctosys
def hctosys(self) -> maix.err.Err
Set the system time from the BM8563
item | description |
---|---|
type | func |
return | err::Err type |
static | False |
C++ defination code:
err::Err hctosys()
systohc
def systohc(self) -> maix.err.Err
Set the BM8563 from the system time
item | description |
---|---|
type | func |
return | err::Err type |
static | False |
C++ defination code:
err::Err systohc()