Add RGBLED.pulse method

Also add timing tests to all the blink unit-tests
This commit is contained in:
Andrew Scheller
2016-05-04 11:14:36 +01:00
parent 7e6cc39d71
commit 18bb3f559e
3 changed files with 239 additions and 7 deletions

View File

@@ -23,13 +23,13 @@ PWMLED
======
.. autoclass:: PWMLED(pin, active_high=True, initial_value=0, frequency=100)
:members: on, off, toggle, blink, pin, is_lit, value
:members: on, off, toggle, blink, pulse, pin, is_lit, value
RGBLED
======
.. autoclass:: RGBLED(red, green, blue, active_high=True, initial_value=(0, 0, 0))
:members: on, off, toggle, blink, red, green, blue, is_lit, color
:members: on, off, toggle, blink, pulse, red, green, blue, is_lit, color
Buzzer
======