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