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

40 lines
685 B
C++

#include "Inkplate.h"
#include "SdFat.h"
Inkplate display(INKPLATE_3BIT);
void setup()
{
Serial.begin(115200);
display.begin();
display.joinAP("e-radionica.com", "croduino");
Serial.println();
delay(500);
}
void loop()
{
display.clearDisplay();
display.display();
if (display.sdCardInit())
{
Serial.println(display.drawBitmapFromSd("Lenna.bmp", 0, 0, 0, 0));
}
display.display();
delay(5000);
if (display.sdCardInit())
{
int16_t t = millis();
Serial.println(display.drawBitmapFromSd("Lenna.bmp", 0, 0, 1, 0));
Serial.println(millis() - t);
}
display.display();
delay(5000);
}