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

30 lines
456 B
Arduino
Raw Normal View History

2020-09-09 10:27:49 +02:00
#include "Inkplate.h"
#include "SdFat.h"
2020-09-10 13:50:09 +02:00
Inkplate display(INKPLATE_1BIT);
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 14:18:37 +02:00
if (display.sdCardInit())
{
2020-09-10 13:17:24 +02:00
Serial.println(display.drawJpegFromSd("Lenna.jpg", 0, 0, 1, 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);
}