flipdot/flipcontrol_esp32/src/main.cpp

40 lines
420 B
C++
Raw Normal View History

#include <Arduino.h>
2023-01-31 21:50:25 +00:00
#include "flipdot.h"
#include "image.h"
Image flip;
2023-01-31 20:28:49 +00:00
unsigned long loopmillis=0;
unsigned long last_update=0;
2023-01-24 22:46:52 +00:00
void setup() {
flip.init();
Serial.begin(115200);
}
void loop() {
loopmillis = millis();
2023-01-31 20:28:49 +00:00
if (loopmillis > last_update + UPDATE_INTERVAL)
{
flip.loop_drawClearTest();
//loop_testDots();
2023-01-24 22:46:52 +00:00
last_update=loopmillis;
}
}