I recently purchased two 2.7" eInk screens and am having some difficulty getting them to work. I have been trying to get the EPD test to run, but every time I run it it flashes the screen a bunch and ends up displaying this:
I am using an arduino UNO, this is how I have the pins set up
Vin -> 5V
GND -> GND
SCK -> 13
MISO -> 12
MOSI -> 11
ECS -> 6
D/C -> 9
SRCS -> 8
RST -> 5
BUSY -> 4
Both screens display the same erroneous picture, and I have checked the connections to make sure there is continuity between the pins on the screen and the Arduino.
Any ideas are appreciated.
Code: Select all
#include "Adafruit_EPD.h"
#define EPD_CS 6
#define EPD_DC 9
#define SRAM_CS 8
#define EPD_RESET 5 // can set to -1 and share with microcontroller Reset!
#define EPD_BUSY 4 // can set to -1 to not use a pin (will wait a fixed delay)
/* Uncomment the following line if you are using 1.54" tricolor EPD */
//Adafruit_IL0373 display(152, 152 ,EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
/* Uncomment the following line if you are using 2.15" tricolor EPD */
//Adafruit_IL0373 display(212, 104 ,EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
/* Uncomment the following line if you are using 2.7" tricolor EPD */
Adafruit_IL91874 display(264, 176 ,EPD_DC, EPD_RESET, EPD_CS, SRAM_CS);
void setup() {
display.begin();
display.clearBuffer();
//draw some pretty lines
for (int16_t i=0; i<display.width(); i+=4) {
display.drawLine(0, 0, i, display.height()-1, EPD_BLACK);
}
for (int16_t i=0; i<display.height(); i+=4) {
display.drawLine(display.width()-1, 0, 0, i, EPD_RED);
}
//refresh the display
display.display();
}
void loop() {
//don't do anything!
}