do a little led startup animation
This commit is contained in:
parent
b1e2aecfff
commit
a47ce985d0
|
@ -1,6 +1,7 @@
|
|||
#include <Arduino.h>
|
||||
#include <AlignedJoy.h>
|
||||
#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 = {};
|
||||
|
|
Loading…
Reference in a new issue