-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Two LED's need to be controlled; a status and error light.
This is implemented using the following python command:
Adafruit_I2c.write8( reg, value)
register 6 controls error LED on PA5
register 7 controls status LED on PA4
value 1 means on, value 0 means off. other values will be invalid and ignored
These registers are readable using Adafruit_I2c.read8( reg)
alternate ideas :
a single register with multiple valid values. ie bit0 is error bit1 is status. This would allow bit or's to do multiple commands in a single write, but makes things a little less clear.
non-0/1 values could represent something, maybe a duty cycle or blink number. ie write8(6,2) is blink the error light. This would allow more flexibility, but I can't think of anything I'd actually want.