Commit graph

6 commits

Author SHA1 Message Date
Drew Fustini
fff7617a15
fix error in set_brightness()
Resolve error that occurs in set_brightness():

E       TypeError: unorderable types: str() < int()

Signed-off-by: Drew Fustini <drew@pdp7.com>
2017-11-22 03:30:22 -06:00
Drew Fustini
2f54b4e788
use dict.items() instead of dict.iteritems() for Python 3
from: https://wiki.python.org/moin/Python3.0

> Remove dict.iteritems(), dict.iterkeys(), and dict.itervalues().
>    Instead: use dict.items(), dict.keys(), and dict.values() respectively.

Signed-off-by: Drew Fustini <drew@pdp7.com>
2017-11-22 03:26:11 -06:00
Drew Fustini
cd6b0a721a
fix except syntax for Python 3
Signed-off-by: Drew Fustini <drew@pdp7.com>
2017-11-22 03:25:14 -06:00
Drew Fustini
c27d805bf4 tidy up the the USR LED test 2017-01-09 02:10:04 +00:00
Drew Fustini
d6136bf639 refactor methods to test all LEDs 2017-01-08 10:01:01 +00:00
Drew Fustini
b620b3f942 Add support for on-board LEDs (USR0-USR3)
The built-in LEDs are handled by the LED class driver and have a
different /sys/ path than the GPIO pins.

See PyBBIO library for reference:
https://github.com/graycatlabs/PyBBIO/blob/master/bbio/platform/beaglebone/config.py#L44

Resolves Adafruit customer reported issue:
https://forums.adafruit.com/viewtopic.php?f=49&t=51906
2016-01-03 18:00:25 +00:00