Document and test the LineSensor class properly. Multi-sensor devices
can wait for now.
This commit is contained in:
Dave Jones
2016-04-02 18:30:47 +01:00
parent a59f8f6b35
commit 23a63697b6
4 changed files with 80 additions and 13 deletions

View File

@@ -20,6 +20,13 @@ Button
:members: wait_for_press, wait_for_release, pin, is_pressed, pull_up, when_pressed, when_released
Line Sensor (TRCT5000)
======================
.. autoclass:: LineSensor(pin)
:members: wait_for_line, wait_for_no_line, pin, line_detected, when_line, when_no_line
Motion Sensor (D-SUN PIR)
=========================

View File

@@ -23,6 +23,7 @@ digraph classes {
Button->DigitalInputDevice;
MotionSensor->SmoothedInputDevice;
LightSensor->SmoothedInputDevice;
LineSensor->SmoothedInputDevice;
OutputDevice->GPIODevice;
DigitalOutputDevice->OutputDevice;