Commit Graph

761 Commits

Author SHA1 Message Date
Dave Jones
065b5aa40d Draft of a queue implementation for MotionSensor
This is a quick *untested* implementation of a background threaded
queue for `MotionSensor`. The optional *queue_len* is the number of
values to store in the queue, *sample_rate* is the number of times per
second to query the motion sensor, and if *partial* is False (the
default) then the `motion_detected` property won't return anything until
the queue has been filled.
2015-09-15 16:02:16 +01:00
Ben Nuttall
90aed0e925 Merge pull request #1 from waveform80/cleanup
Minor clean-up
2015-09-15 10:08:05 +01:00
Dave Jones
b87bb0c4c3 Minor clean-up
Expand gitignore to include the usual py developing stuff, add an
__init__ to make this a legitimate package, move GPIO initialization
into the package init, import all stuff from input and output devices in
the package to enable the access demonstrated in the example, remove a
duplicate method from LightSensor, and make motion_detected a property
(for consistency with is_active which it presumably parallels).
2015-09-15 08:43:13 +01:00
Ben Nuttall
5b99e69e9b Make is_active a property 2015-09-14 21:29:39 +01:00
Ben Nuttall
d11f9725e5 Implement TemperatureSesnor and Motor and expand readme 2015-09-14 21:01:24 +01:00
Ben Nuttall
f548729676 Add MotionSensor 2015-09-14 15:54:54 +01:00
Ben Nuttall
d802e2d89a Add components to readme 2015-09-14 13:58:35 +01:00
Ben Nuttall
3e52078450 Add wait_for_input and add_callback methods to InputDevice 2015-09-14 13:46:08 +01:00
Ben Nuttall
4d19a10547 Add basic version of code 2015-09-14 11:04:39 +01:00
Ben Nuttall
95118e504d Ignore *.pyc 2015-09-14 11:04:18 +01:00
Ben Nuttall
272747238f Initial commit 2015-09-14 10:36:03 +01:00