corbanmailloux / esp-mqtt-rgb-led

MQTT RGB LEDs Using JSON for Home Assistant
MIT License
270 stars 74 forks source link

Add config option for toggling the on-board LED #39

Closed corbanmailloux closed 6 years ago

corbanmailloux commented 6 years ago

On some board (like the ESP8266-01), there is an on-board LED that is seemingly on by default. To turn it off, I've added some code to explicitly set the LED off. Some people might not be bothered by it, or may want to use that pin as an additional GPIO.

This uses the built-in define of BUILTIN_LED, which should be defined by the board configuration automatically in the Arduino IDE.

Add a configuration option for what to do with the LED.