Commit Graph

18 Commits

Author SHA1 Message Date
Dave Jones
1219d99ded Fix #8
Make the pin property a read-only property
2015-09-17 10:50:23 +01:00
Ben Nuttall
61e15868e9 Add detail to readme 2015-09-15 19:12:08 +01:00
Ben Nuttall
491e6d8feb Merge branch 'waveform80-motion-queue' 2015-09-15 17:58:06 +01:00
Ben Nuttall
df1eb2dffd Merge branch 'motion-queue' of git://github.com/waveform80/gpio-zero into waveform80-motion-queue 2015-09-15 17:57:43 +01:00
Ben Nuttall
5f65ec739b Update links to repo 2015-09-15 17:57:14 +01:00
Ben Nuttall
a8b93cf97f Add setup.py and distribution basics 2015-09-15 17:53:50 +01:00
Ben Nuttall
abdc215175 Rename to gpiozero and tidy up 2015-09-15 17:53:08 +01:00
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