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

30 lines
451 B
Arduino
Raw Normal View History

2020-09-09 10:27:49 +02:00
#include "Inkplate.h"
#include "SdFat.h"
Inkplate display(INKPLATE_3BIT);
2020-09-07 11:40:01 +02:00
void setup()
{
Serial.begin(115200);
2020-09-09 10:27:49 +02:00
display.begin();
display.joinAP("e-radionica.com", "croduino");
Serial.println();
delay(500);
2020-09-07 11:40:01 +02:00
}
void loop()
{
2020-09-09 10:27:49 +02:00
display.clearDisplay();
display.display();
2020-09-07 11:40:01 +02:00
2020-09-09 10:27:49 +02:00
if (display.sdCardInit())
2020-09-07 11:40:01 +02:00
{
2020-09-09 10:27:49 +02:00
Serial.println(display.drawBitmapFromSD("8bit.bmp", 0, 0));
2020-09-07 11:40:01 +02:00
}
2020-09-09 10:27:49 +02:00
display.display();
2020-09-07 11:40:01 +02:00
delay(5000);
}