This commit is contained in:
2023-01-02 22:20:38 +01:00
parent 5257cf9a31
commit ab15d1ce3f
3 changed files with 13 additions and 5 deletions

View File

@@ -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

View File

@@ -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;
}
}

View File

@@ -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;
};