forked from jappel/VersaMCU
Initial commit
This commit is contained in:
commit
b49984b9c0
32 changed files with 2394 additions and 0 deletions
27
src/main.cpp
Normal file
27
src/main.cpp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#include <Arduino.h>
|
||||
#include "hal/ws2812.h"
|
||||
#include "hal/usb_hid.h"
|
||||
#include "CMainController.h"
|
||||
|
||||
static CMainController controller;
|
||||
|
||||
void setup()
|
||||
{
|
||||
delay(500); // USB-Enumeration abwarten vor erstem noInterrupts()-Aufruf
|
||||
|
||||
ws2812_init();
|
||||
|
||||
// Startup-Blink: bestätigt dass Firmware läuft
|
||||
ws2812_fill(100, 0, 0);
|
||||
ws2812_show();
|
||||
delay(1000);
|
||||
ws2812_clear();
|
||||
ws2812_show();
|
||||
|
||||
controller.setup();
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
controller.work();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue