refactor
This commit is contained in:
@@ -13,9 +13,10 @@ platform = espressif32
|
||||
board = m5stack-atom
|
||||
framework = arduino
|
||||
lib_deps =
|
||||
bblanchon/ArduinoJson@^6.18.5
|
||||
fastled/FastLED@^3.4.0
|
||||
https://github.com/RobTillaart/AS5600.git
|
||||
#bblanchon/ArduinoJson@^6.18.5
|
||||
bblanchon/ArduinoJson@^6.20.0
|
||||
fastled/FastLED@^3.5.0
|
||||
robtillaart/AS5600 @ ^0.3.4
|
||||
monitor_speed = 115200
|
||||
lib_ldf_mode = deep+
|
||||
extra_scripts = ./littlefsbuilder.py
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
#include "led.h"
|
||||
|
||||
#ifdef STEALTH
|
||||
const bool LED_STEALTH = true;
|
||||
#else
|
||||
const bool LED_STEALTH = false;
|
||||
#endif
|
||||
|
||||
CRGB leds[NUM_LEDS];
|
||||
|
||||
bool ledstate = false;
|
||||
@@ -56,7 +62,8 @@ void handleLed(void)
|
||||
{
|
||||
leds[0] = ledcolor;
|
||||
}
|
||||
FastLED.show();
|
||||
FastLED.show();
|
||||
|
||||
lastLedTime = timeNow;
|
||||
}
|
||||
}
|
||||
@@ -38,7 +38,7 @@ class OtaProcess_class : public processClass
|
||||
public:
|
||||
OtaProcess_class(uint32_t timeout):processClass(timeout){}
|
||||
|
||||
OTASTATES m_otaState = otaInit;
|
||||
OTASTATES m_otaState = otaInit;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user