diff --git a/README.md b/README.md index 6f442b1..c98f1d3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -from pylgbst.peripherals import ColorDistanceSensor# Python library to interact with LEGO Move Hub +# Python library to interact with LEGO Move Hub Best way to start is to look into [`demo.py`](demo.py) file, and run it. @@ -44,9 +44,13 @@ general subscription modes & granularity info good practice is to unsubscribe, especially when used with `DebugServer` ### Motors + ### Motor Rotation Sensors + ### Tilt Sensor +MoveHub's internal tilt sensor is available through filed `tilt_sensor` + ### Color & Distance Sensor Field named `color_distance_sensor` holds instance of `ColorDistanceSensor`, if one is attached to MoveHub. Sensor has number of different modes to subscribe. Only one, very last subscribe mode is in effect, with many subscriber callbacks allowed. diff --git a/pylgbst/peripherals.py b/pylgbst/peripherals.py index 906af6d..7dc3737 100644 --- a/pylgbst/peripherals.py +++ b/pylgbst/peripherals.py @@ -284,7 +284,6 @@ class TiltSensor(Peripheral): state = data[4] self._notify_subscribers(state) elif self._port_subscription_mode == self.MODE_2AXIS_SIMPLE: - # TODO: figure out right interpreting of this state = data[4] self._notify_subscribers(state) elif self._port_subscription_mode == self.MODE_BUMP: