PiStorms  4.015
PiStorms Library Reference by mindsensors.com
 All Classes Namespaces Files Functions Variables
mindsensors.EV3SensAdapt Class Reference

EV3SensAdapt: this class provides functions for EV3 Sensor Adapter and EV3 Sensor Multiplexor from mindsensors.com for read and write operations. More...

Inheritance diagram for mindsensors.EV3SensAdapt:

Public Member Functions

def __init__
 Initialize the class with the i2c address of your Dist-Nx. More...
 
def setMode
 
def getMode
 
def isTouchedEV3
 Reads the status of the EV3 Touch Sensor on the EV3SensorAdapter or EV3SensorMux. More...
 
def numTouchesEV3
 
def resetTouchesEV3
 
def distanceIREV3
 
def headingIREV3
 
def distanceRemoteIREV3
 
def remoteLeft
 
def remoteRight
 
def distanceUSEV3
 
def distanceUSEV3in
 
def presenceUSEV3
 
def gyroAngleEV3
 
def gyroRateEV3
 
def reflectedLightSensorEV3
 
def ambientLightSensorEV3
 
def colorSensorEV3
 

Static Public Attributes

tuple EV3SensAdapt_ADDRESS = (0x32)
 Default Dist-Nx I2C Address.
 
int SETMODE = 0x52
 Set Mode Register.
 
int DATA1 = 0x54
 Data Register 1. More...
 
int DATA2 = 0x55
 Data Register 2. More...
 
int DATA3 = 0x56
 Data Register 3. More...
 
int DATA4 = 0x57
 Data Register 4. More...
 
int DATA5 = 0x58
 Data Register 5. More...
 
int DATA6 = 0x59
 Data Register 6. More...
 
int DATA7 = 0x5A
 Data Register 7. More...
 
int DATA8 = 0x5B
 Data Register 8. More...
 

Detailed Description

EV3SensAdapt: this class provides functions for EV3 Sensor Adapter and EV3 Sensor Multiplexor from mindsensors.com for read and write operations.

Constructor & Destructor Documentation

def mindsensors.EV3SensAdapt.__init__ (   self,
  ev3SensAdapt_address = EV3SensAdapt_ADDRESS 
)

Initialize the class with the i2c address of your Dist-Nx.

Parameters
selfThe object pointer.
ev3SensAdapt_addressAddress of your Dist-Nx.

Member Function Documentation

def mindsensors.EV3SensAdapt.isTouchedEV3 (   self)

Reads the status of the EV3 Touch Sensor on the EV3SensorAdapter or EV3SensorMux.

Parameters
selfThe object pointer.

Member Data Documentation

int mindsensors.EV3SensAdapt.DATA1 = 0x54
static

Data Register 1.

Will return byte value corresponding to the connected sensor data

int mindsensors.EV3SensAdapt.DATA2 = 0x55
static

Data Register 2.

Will return byte value corresponding to the connected sensor data (depending on sensor and mode)

int mindsensors.EV3SensAdapt.DATA3 = 0x56
static

Data Register 3.

Will return byte value corresponding to the connected sensor data (depending on sensor and mode)

int mindsensors.EV3SensAdapt.DATA4 = 0x57
static

Data Register 4.

Will return byte value corresponding to the connected sensor data (depending on sensor and mode)

int mindsensors.EV3SensAdapt.DATA5 = 0x58
static

Data Register 5.

Will return byte value corresponding to the connected sensor data (only on infrared sensor)

int mindsensors.EV3SensAdapt.DATA6 = 0x59
static

Data Register 6.

Will return byte value corresponding to the connected sensor data (only on infrared sensor)

int mindsensors.EV3SensAdapt.DATA7 = 0x5A
static

Data Register 7.

Will return byte value corresponding to the connected sensor data (only on infrared sensor)

int mindsensors.EV3SensAdapt.DATA8 = 0x5B
static

Data Register 8.

Will return byte value corresponding to the connected sensor data (only on infrared sensor)


The documentation for this class was generated from the following file: