|
Spike Prime & Robot Inventor python Library Reference
Spike Prime & Robot Inventor python Library
|
Public Member Functions | |
| def | __init__ (self, port, EV3fps_address=EV3fps_ADDRESS) |
| Initialize the class with the i2c address of your EV3fps. More... | |
| def | command (self, command) |
| Writes a value to the command register. More... | |
| def | get_EV3fps_Matched (self) |
| Reads the EV3fps Matched profiles. | |
| def | get_EV3fps_Status (self) |
| Reads the EV3fps Status. | |
| def | get_EV3fps_ProfileId (self) |
| Reads the EV3fps programed Profile Ids. | |
| def | get_EV3fps_ProfileCt (self) |
| Reads the EV3fps total Profile Counts. | |
| def | get_EV3fps_ProfileCap (self) |
| Reads the EV3fps Profile Capacity. | |
| def | get_EV3fps_Delete (self) |
| Delete all stored profiles from EV3fps. | |
| def | get_EV3fps_Remove (self, ProfileId) |
| Remove stored profile at Profile Id from EV3fps. | |
| def | get_EV3fps_Enroll (self) |
| Enroll New profile to EV3fps. | |
Public Member Functions inherited from lib.mindsensors.SPIKEi2c | |
| def | __init__ (self, port, i2c_address, bitrate=100) |
| def | readByte (self, reg) |
| Read the byte from reg of the i2c device. More... | |
| def | readArray (self, reg, len) |
| read len long data array at reg of the i2c device More... | |
| def | writeByte (self, reg, value) |
| write value at reg of the i2c device More... | |
| def | writeArray (self, reg, arr) |
| write data array at reg of the i2c device More... | |
| def | readString (self, reg, length) |
| Read the string of len from reg of the i2c device. More... | |
| def | readInteger (self, reg) |
| Read the int from reg of the i2c device. More... | |
| def | readIntegerSigned (self, reg) |
| Read the signed int from reg of the i2c device. More... | |
| def | readLong (self, reg) |
| Read the long from reg of the i2c device. More... | |
| def | GetFirmwareVersion (self) |
| Read the firmware version of the i2c device. | |
| def | GetVendorName (self) |
| Read the vendor name of the i2c device. | |
| def | GetDeviceId (self) |
| Read the i2c device id. | |
Public Attributes | |
| EV3fps_address | |
| port | |
Public Attributes inherited from lib.mindsensors.SPIKEi2c | |
| SCL | |
| SDA | |
| address | |
| int_clk | |
Static Public Attributes | |
| tuple | EV3fps_ADDRESS = (0x62) |
| Default EV3fps I2C Address. | |
| int | COMMAND = 0x41 |
| Command Register. | |
| int | EV3fpsMatched = 0x42 |
| EV3fpsMatched Register. More... | |
| int | EV3fpsStatus = 0x43 |
| EV3fpsStatus Register. More... | |
| int | EV3fpsProfileId = 0x44 |
| EV3fpsProfileId Register. More... | |
| int | EV3fpsProfileCt = 0x45 |
| EV3fpsProfileCt Register. More... | |
| int | EV3fpsProfileCap = 0x46 |
| EV3fpsProfileCap Register. More... | |
| int | EV3fps_delete = 0x44 |
| Supported commands. | |
| int | EV3fps_enroll = 0x45 |
| int | EV3fps_remove = 0x52 |
Static Public Attributes inherited from lib.mindsensors.SPIKEi2c | |
| int | int_clk = -1 |
| def lib.mindsensors.EV3FPS.__init__ | ( | self, | |
| port, | |||
EV3fps_address = EV3fps_ADDRESS |
|||
| ) |
Initialize the class with the i2c address of your EV3fps.
| EV3fps_address | Address of your EV3fps, skip if default |
| def lib.mindsensors.EV3FPS.command | ( | self, | |
| command | |||
| ) |
Writes a value to the command register.
| command | Value to write to the command register. |
|
static |
EV3fpsMatched Register.
Will return an byte value
|
static |
EV3fpsProfileCap Register.
Will return an byte value
|
static |
EV3fpsProfileCt Register.
Will return an byte value
|
static |
EV3fpsProfileId Register.
Will return an byte value
|
static |
EV3fpsStatus Register.
Will return an byte value
1.8.15