add config switch
This commit is contained in:
@ -18,10 +18,13 @@ void setup() {
|
||||
pinMode(LED_GREEN, OUTPUT);
|
||||
digitalWrite(LED_GREEN, LOW);
|
||||
|
||||
pinMode(CONFIG_SWITCH, INPUT_PULLUP);
|
||||
|
||||
Serial.begin(115200);
|
||||
|
||||
configLoad();
|
||||
|
||||
productionMode = (digitalRead(CONFIG_SWITCH) == HIGH);
|
||||
if (productionMode) {
|
||||
productionSetup();
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user