Beispiel #1
0
 def __init__(self, port):
     # Get the instance of the PSSensor class
     self.sensor = port.pssensor
     # Initialize the class with the i2c address of the bank
     mindsensors_i2c.__init__(self, self.sensor.bank.address)
     # Set range to long range by default
     self.setRange()
     # Method used in the original implementation
     self.sensor.setModeEV3(0)
Beispiel #2
0
 def __init__(self, color_address = Color_ADDRESS):
     mindsensors_i2c.__init__(self, color_address >> 1)
Beispiel #3
0
 def __init__(self, port, address=CAM_ADDRESS):
     port.activateCustomSensorI2C()
     mindsensors_i2c.__init__(self, address >> 1)
Beispiel #4
0
 def __init__(self, address=0x60):
     mindsensors_i2c.__init__(self, address)
     self.reset()
     self.deInit()
Beispiel #5
0
 def __init__(self, address=0x60):
     mindsensors_i2c.__init__(self, address)
     self.reset()
     self.deInit()