maix.peripheral.pinmap
maix.peripheral.pinmap module
You can use
maix.peripheral.pinmap
to access this module with MaixPy
This module is generated from MaixPy and MaixCDK
Module
No module
Enum
Variable
Function
get_pins
def get_pins() -> list[str]
Get all pins of devices
item | description |
---|---|
return | pin name list, string type. |
C++ defination code:
std::vector<std::string> get_pins()
get_pin_functions
def get_pin_functions(pin: str) -> list[str]
Get all function of a pin
item | description |
---|---|
param | pin: pin name, string type. |
return | function list, function name is string type. |
throw | If pin name error will throwout err.Err.ERR_ARGS error. |
C++ defination code:
std::vector<std::string> get_pin_functions(const std::string &pin)
set_pin_function
def set_pin_function(pin: str, func: str) -> maix.err.Err
Set function of a pin
item | description |
---|---|
param | pin: pin name, string type. func: which function should this pin use. |
return | if set ok, will return err.Err.ERR_NONE, else error occurs. |
C++ defination code:
err::Err set_pin_function(const std::string &pin, const std::string &func)