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;
@@ -57,6 +63,7 @@ void handleLed(void)
leds[0] = ledcolor;
}
FastLED.show();
lastLedTime = timeNow;
}
}