maix.ext_dev.fp5510
maix.ext_dev.fp5510 module
You can use
maix.ext_dev.fp5510
to access this module with MaixPy
This module is generated from MaixPy and MaixCDK
Module
No module
Enum
Variable
Function
Class
FP5510
FP5510 class
C++ defination code:
class FP5510
__init__
def __init__(self, id: int = 4, slave_addr: int = 12, freq: int = 400000) -> None
Construct a new FP5510 object
item | description |
---|---|
type | func |
param | id: iic number, default is 4 slave_addr: slave address of fp5510, default is 0x0c. freq: iic frequency, default is 400k |
static | False |
C++ defination code:
FP5510(int id = 4, int slave_addr = 0x0c, int freq = 400000)
set_pos
def set_pos(self, pos: int) -> None
Set fp5510 position
item | description |
---|---|
type | func |
param | pos: the position of fp5510, range is [0, 1023] |
static | False |
C++ defination code:
void set_pos(uint32_t pos)
get_pos
def get_pos(self) -> int
Get fp5510 position
item | description |
---|---|
type | func |
return | returns the position of fp5510, range is [0, 1023] |
static | False |
C++ defination code:
uint32_t get_pos()