This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The ledIO() function turns on or off an LED (in a particular color - if RGB) based on the mode passed to it. The mode can be the color of LED - in lower case - if RGB | |
//or simply on or off if a single color LED | |
void ledIO(uint8_t mode) | |
{ | |
switch (mode) { | |
case 1: //RED | |
digitalWrite(RLED, HIGH); | |
digitalWrite(GLED, LOW); | |
digitalWrite(BLED, LOW); | |
break; |
NewerOlder