move externalLight to Settings.h to allow more obvious way for disabling the use of the built-in led without having to modify the board physically
parent
fa6d7f8511
commit
e9fdb0aeb9
|
|
@ -84,6 +84,9 @@ const int SCL_PIN = D5;
|
||||||
const boolean INVERT_DISPLAY = false; // true = pins at top | false = pins at the bottom
|
const boolean INVERT_DISPLAY = false; // true = pins at top | false = pins at the bottom
|
||||||
//#define DISPLAY_SH1106 // Uncomment this line to use the SH1106 display -- SSD1306 is used by default and is most common
|
//#define DISPLAY_SH1106 // Uncomment this line to use the SH1106 display -- SSD1306 is used by default and is most common
|
||||||
|
|
||||||
|
// LED Settings
|
||||||
|
const int externalLight = LED_BUILTIN; // Set to unused pin, like D1, to disable use of built-in LED (LED_BUILTIN)
|
||||||
|
|
||||||
boolean ENABLE_OTA = true; // this will allow you to load firmware to the device over WiFi (see OTA for ESP8266)
|
boolean ENABLE_OTA = true; // this will allow you to load firmware to the device over WiFi (see OTA for ESP8266)
|
||||||
String OTA_Password = ""; // Set an OTA password here -- leave blank if you don't want to be prompted for password
|
String OTA_Password = ""; // Set an OTA password here -- leave blank if you don't want to be prompted for password
|
||||||
//******************************
|
//******************************
|
||||||
|
|
|
||||||
|
|
@ -155,9 +155,6 @@ String COLOR_THEMES = "<option>red</option>"
|
||||||
"<option>w3schools</option>";
|
"<option>w3schools</option>";
|
||||||
|
|
||||||
|
|
||||||
// Change the externalLight to the pin you wish to use if other than the Built-in LED
|
|
||||||
int externalLight = LED_BUILTIN; // LED_BUILTIN is is the built in LED on the Wemos
|
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
SPIFFS.begin();
|
SPIFFS.begin();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue