Professional Documents
Culture Documents
Psuedoledstripwrite
Psuedoledstripwrite
LEDStripSetColor
Parameter: LEDStripColor_t LEDStripColor
Based on the state of the LEDStripColor variable choose one of the following blocks of code:
LEDStripColor is Off
Put all color bits low
End Off Block
LEDStripColor is Green
Put blue and red bits low
Put green bit high
End Green Block
LEDStripColor is Red
Put green and blue bits low
Put red bit high
End Red Block
LEDStripColor is White
Put all color bits high
End White Block
LEDStripColor is Purple
Put blue and red bits high
Put green bit low
End Purple Block
Default
Put all color bits low
End Default Block
End of LEDStripSetColor
End of LEDStripWrite