|
def | __init__ (self, port, address=EV3FLOW_ADDRESS) |
| Initialize the class with the i2c address of your EV3Flow. More...
|
|
def | get_flow (self) |
| Reads the flow in cc/min.
|
|
def | clear (self) |
| Clear the flow and volume value.
|
|
def | get_volume (self) |
| Reads the volume in cc.
|
|
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.
|
|
|
| EV3Flow_address |
|
| port |
|
| SCL |
|
| SDA |
|
| address |
|
| int_clk |
|
|
int | EV3FLOW_ADDRESS = 0x38 |
| Default EV3Flow I2C Address.
|
|
int | COMMAND = 0x41 |
| Command Register.
|
|
int | FLOW = 0x46 |
|
int | VOL = 0x42 |
|
int | CLEAR = 0x43 |
|
int | int_clk = -1 |
|
◆ __init__()
def lib.mindsensors.EV3FLOW.__init__ |
( |
|
self, |
|
|
|
port, |
|
|
|
address = EV3FLOW_ADDRESS |
|
) |
| |
Initialize the class with the i2c address of your EV3Flow.
- Parameters
-
port | Spike Prime port, EV3Flow is connected to. |
address | is Address of your EV3Flow, skip to use default. |
The documentation for this class was generated from the following file: