Added code for RGB LED

This commit is contained in:
ArnieO 2020-02-21 19:13:44 +01:00
parent 79274e490d
commit be75b013c0

View File

@ -89,6 +89,12 @@ void setup() {
ESP.deepSleep(10000000); //Deep sleep to allow output cap to charge up
}
#if HAS_RGB_LED
// Initialize RGB LED pins
pinMode(LEDPIN_RGB_GREEN, OUTPUT);
pinMode(LEDPIN_RGB_RED, OUTPUT);
#endif
// Flash the LED, to indicate we can boot as AP now
pinMode(LED_PIN, OUTPUT);
pinMode(AP_BUTTON_PIN, INPUT_PULLUP);