From a47ce985d09800697e285982ad3468996ba16b51 Mon Sep 17 00:00:00 2001 From: tyler miller Date: Fri, 10 Jan 2025 12:03:53 -0500 Subject: [PATCH] do a little led startup animation --- src/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index ae76f62..8ea892c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,7 @@ #include #include #include "NvmEeprom.hpp" +#include "Arduino_LED_Matrix.h" // joystick calibration #define TIME_CAL_1 2000 @@ -8,6 +9,7 @@ // static objects AlignedJoy joystick_1(0, 1); /// X on A0, Y on A1 +ArduinoLEDMatrix ledMatrix; void runJoystickCalibrationRoutine(AlignedJoy &joy) { @@ -92,10 +94,13 @@ void setup() { // SERIAL INITIALIZE - Serial.begin(9600); + Serial.begin(115200); + ledMatrix.loadSequence(LEDMATRIX_ANIMATION_STARTUP); + ledMatrix.begin(); while (!Serial) { } + ledMatrix.play(true); // retrieve joystic calibration values or run calibration and save results NonVolatileMemory nvm = {};