inkplate-6-arduino-library/test/flappyBird/flappyBird.ino

25 lines
437 B
Arduino
Raw Normal View History

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-10 08:04:45 +02:00
2020-09-09 10:27:49 +02:00
display.drawBitmap(offSet, 0, (uint8_t *)bck_day, bck_day_w, bck_day_h, BLACK);
2020-09-10 08:04:45 +02:00
int32_t t = millis();
2020-09-07 11:40:01 +02:00
display.partialUpdate();
2020-09-09 10:27:49 +02:00
Serial.println(millis() - t);
2020-09-10 08:04:45 +02:00
display.clearDisplay();
2020-09-09 10:27:49 +02:00
offSet += 70;
offSet %= 300;
2020-09-07 11:40:01 +02:00
}