On power up it randomly selects blue, yellow, or magenta and pulses that color. It can also be controlled by i2c.
wire address 0x55
Wire register map:
- 0 - mode
- mode 0 is default powerslug mode and uses it's own values
- mode 1 is blink mode
- mode 2 is custom fade mode
- mode 3 is gpio trigger.
- allows turning led on and off using sao gpio_1
- 1 - red hex val
- 2 - green hex val
- 3 - blue hex val
- 4 - brightness
- 5 - pwm on time
- 6 - blink/fade duration lsb
- 7 - blink/fade duration msb
ISSUES: I did the current limiting resistor on the led all wrong, and only put a single 1kohm on the annode, when it really should have been a 220ohm on EACH cathode. It was to late to change the pcb's, so I just hacked together a deadbug style fix of through-hole 220ohm resistors wrapped around from the back to tie to the led's cathodes. It's ugly, but it works.
The "sparkfun Panalizer" addon I used in kicad did not transfer it's intent well to oshpark, so I have a bunch of pcb's stuck together that I'm going to have to dremel apart. You live you learn