mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-12-08 20:39:01 +00:00
Make tests work reliably on the Pi
While the tests work well on a PC or Travis, the Pi (where I ought to be running them!) has some issues with the timing tests. Need to relax the tolerance of the "assert_states_and_times" method to 0.05 seconds otherwise it periodically fails even on something reasonably quick like a Pi 2 (less failures on a Pi 3 but still occasionally). Also reduced default fps to 25; if the default timing occasionally fails on a Pi 2 it's evidently too fast for a Pi 1 and shouldn't be the default; 25 also doesn't look any different to me on a pulsing LED. There's also a bunch of miscellaneous fixes in here; last minute typos and chart re-gens for the 1.2 release.
This commit is contained in:
@@ -12,6 +12,8 @@ Release 1.2.0 (2016-04-??)
|
||||
* Added :class:`LineSensor` class for single line-sensors (`#109`_)
|
||||
* Added :class:`DistanceSensor` class for HC-SR04 ultra-sonic sensors (`#114`_)
|
||||
* Added :class:`SnowPi` class for the Ryanteck Snow-pi board (`#130`_)
|
||||
* Added :attr:`~Button.when_held` (and related properties) to :class:`Button`
|
||||
(`#115`_)
|
||||
* Fixed issues with installing GPIO Zero for python 3 on Raspbian Wheezy
|
||||
releases (`#140`_)
|
||||
* Added support for lots of ADC chips (MCP3xxx family) (`#162`_) - many thanks
|
||||
@@ -35,6 +37,7 @@ reports in this version - keep 'em coming!
|
||||
.. _#69: https://github.com/RPi-Distro/python-gpiozero/issues/69
|
||||
.. _#109: https://github.com/RPi-Distro/python-gpiozero/issues/109
|
||||
.. _#114: https://github.com/RPi-Distro/python-gpiozero/issues/114
|
||||
.. _#115: https://github.com/RPi-Distro/python-gpiozero/issues/115
|
||||
.. _#130: https://github.com/RPi-Distro/python-gpiozero/issues/130
|
||||
.. _#140: https://github.com/RPi-Distro/python-gpiozero/issues/140
|
||||
.. _#162: https://github.com/RPi-Distro/python-gpiozero/issues/162
|
||||
|
||||
Reference in New Issue
Block a user