Skip to content

uC LED control #87

@jmickiewicz

Description

@jmickiewicz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions