My components:
1. Adafruit HUZZAH32 - ESP32 Feather https://learn.adafruit.com/adafruit-huz ... r/overview
2. Adafruit eInk Breakout Friend https://www.adafruit.com/product/4224
3. Waveshare 400x300, 4.2inch E-Ink raw display, three-color https://www.waveshare.com/4.2inch-e-paper-b.htm
My Sketch (via Mac Arduino 1.8.10) – Adafruit EPD Example Sketch "text_test":
Code: Select all
/***************************************************
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
MIT license, all text above must be included in any redistribution
****************************************************/
#include <Adafruit_GFX.h> // Core graphics library
#include "Adafruit_EPD.h"
#define EPD_CS 13
#define EPD_DC 12
#define SRAM_CS 27
#define EPD_RESET 33 // can set to -1 and share with microcontroller Reset!
#define EPD_BUSY 15 // 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 1.54" monochrome EPD */
//Adafruit_SSD1608 display(200, 200, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
/* Uncomment the following line if you are using 2.13" tricolor EPD */
//Adafruit_IL0373 display(212, 104, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
//#define FLEXIBLE_213
/* Uncomment the following line if you are using 2.13" monochrome 250*122 EPD */
//Adafruit_SSD1675 display(250, 122, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
/* Uncomment the following line if you are using 2.7" tricolor or grayscale EPD */
//Adafruit_IL91874 display(264, 176, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS);
/* Uncomment the following line if you are using 2.9" EPD */
//Adafruit_IL0373 display(296, 128, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
//#define FLEXIBLE_290
/* Uncomment the following line if you are using 4.2" tricolor EPD */
Adafruit_IL0398 display(300, 400, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
void setup(void) {
Serial.begin(115200);
Serial.print("Hello! EPD Test");
display.begin();
#if defined(FLEXIBLE_213) || defined(FLEXIBLE_290)
// The flexible displays have different buffers and invert settings!
display.setBlackBuffer(1, false);
display.setColorBuffer(1, false);
#endif
Serial.println("Initialized");
display.setRotation(2);
// large block of text
display.clearBuffer();
display.setTextWrap(true);
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_RED);
display.print("--Eben Upton");
display.display();
}
void loop() {
delay(500);
}
Wiring:
eInk Friend --> HUZZAH32
VIN --> 3V
3V3 --> [nothing]
GND --> GND
SCK --> SCK/5
MISO --> MISO/19
MOSI --> MOSI/18
ECS --> 13/A12
D/C --> 12/A11
SRCS --> 27/A10
RST --> 33/A9
BUSY --> 15/A8
ENA --> En
My problem:
• Uploading completes fine.
• Serial Monitor displays: "Hello! EPD Test".
• Nothing appears on eInk screen.
Help! What am I doing wrong?? I'm assuming it's the wiring. I was very surprised not to find details of how to connect two Adafruit components together (the HUZZAH32 and eInk Breakout Friend) on Adafruit's website – but also couldn't find anyone else having done so when I Googled it either.
Appreciate any help you can provide! Thanks.