2020-09-07 11:40:01 +02:00
|
|
|
#include "Inkplate.h"
|
2020-09-09 10:27:49 +02:00
|
|
|
#include "bck_day.h"
|
2020-09-07 11:40:01 +02:00
|
|
|
|
|
|
|
Inkplate display(INKPLATE_1BIT);
|
|
|
|
|
|
|
|
int offSet = 0;
|
|
|
|
|
|
|
|
void setup()
|
|
|
|
{
|
|
|
|
Serial.begin(115200);
|
|
|
|
display.begin();
|
|
|
|
display.display();
|
|
|
|
}
|
|
|
|
|
|
|
|
void loop()
|
|
|
|
{
|
2020-09-09 10:27:49 +02:00
|
|
|
int32_t t = millis();
|
|
|
|
display.drawBitmap(offSet, 0, (uint8_t *)bck_day, bck_day_w, bck_day_h, BLACK);
|
2020-09-07 11:40:01 +02:00
|
|
|
display.partialUpdate();
|
2020-09-09 10:27:49 +02:00
|
|
|
display.clearDisplay();
|
|
|
|
Serial.println(millis() - t);
|
|
|
|
offSet += 70;
|
|
|
|
offSet %= 300;
|
2020-09-07 11:40:01 +02:00
|
|
|
}
|