rickkas7 / Adafruit_EPD_RK

Particle port of the Adafruit EPD (e-paper, e-ink) display library
MIT License
2 stars 2 forks source link

1.54" mono EPD not working #3

Open karlg100 opened 4 years ago

karlg100 commented 4 years ago

Using latest published 2.3.0 library via web IDE.

this is strait from the Adafruit_EPD examples. (except dropping the red, and updating the display() def for this display) Results in a black->white->black->white->black screen refresh, and that's it.

#define EPD_CS      A5
#define EPD_DC      A4
#define SRAM_CS     A3
#define EPD_RESET   A2 // can set to -1 and share with microcontroller Reset!
#define EPD_BUSY    A1 // can set to -1 to not use a pin (will wait a fixed delay)

Adafruit_SSD1608 display(200, 200, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);

//Adafruit_IL0373 display(152, 152, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);

void setup(void) {
  Serial.begin(115200);
  Serial.print("Hello! EPD Test");

  display.begin();

  Particle.publish("Stat", "Initialized");

//  display.setRotation(2);

  // large block of text
  display.clearBuffer();
  display.setTextWrap(true);
  display.fillScreen(EPD_WHITE);
  display.setCursor(10, 10);
  display.setTextSize(1);
  display.setTextColor(EPD_BLACK);
  display.print("Get as much education as you can. Nobody can take that away from you");

  display.setCursor(50, 70);
  display.setTextColor(EPD_BLACK);
  display.print("--Eben Upton");

  display.display();
  Particle.publish("Stat", "Display Updated");
}

void loop() {
  delay(500);
}