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

38 lines
617 B
Arduino
Raw Normal View History

2020-09-09 10:27:49 +02:00
#include "Inkplate.h"
#include "SdFat.h"
2020-09-10 08:04:45 +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 10:27:49 +02:00
if (display.sdCardInit())
2020-09-07 11:40:01 +02:00
{
2020-09-09 14:18:37 +02:00
Serial.println(display.drawBitmapFromSd("Lenna.bmp", 0, 0, 0, 0));
}
display.display();
delay(5000);
if (display.sdCardInit())
{
Serial.println(display.drawBitmapFromSd("Lenna.bmp", 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);
}