0

Help with display and ESP32 feather board
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Help with display and ESP32 feather board

by NajaAls on Thu Apr 22, 2021 4:28 am

Hi,

I'm using the ESP32 Feather Huzzah and waveshare epd hat display to showcase different text on the display. I can compile and upload the code from Arduino IDE, and I get a response from the display. However, the display is switching between a black and white state, so it's not showing any text. I have borrowed some code from the Adafruit library. Can you help me with this?

Code: Select all | TOGGLE FULL SIZE
#include <Adafruit_GFX.h>    // Core graphics library
#include "Adafruit_EPD.h"

#define EPD_CS     15
#define EPD_DC     21
#define SRAM_CS    15
#define EPD_RESET  27 // can set to -1 and share with microcontroller Reset!
#define EPD_BUSY   32 // can set to -1 to not use a pin (will wait a fixed delay)

Adafruit_IL0373 display(296, 128, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);
#define FLEXIBLE_290

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

  display.begin();
#if 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(10, 10);
  display.setTextColor(EPD_WHITE);
  display.print("--Eben Upton");

  display.display();
}

void loop() {
  delay(500);
}
Last edited by adafruit_support_carter on Thu Apr 22, 2021 2:30 pm, edited 1 time in total.
Reason: fix [code] tags

NajaAls
 
Posts: 7
Joined: Wed Mar 31, 2021 3:23 am

Re: Help with display and ESP32 feather board

by adafruit_support_carter on Thu Apr 22, 2021 2:31 pm

Can you link to the product page for the specific EPD display you are using.

adafruit_support_carter
 
Posts: 20281
Joined: Tue Nov 29, 2016 2:45 pm

Re: Help with display and ESP32 feather board

by NajaAls on Mon Apr 26, 2021 5:04 am

Yes, of course! Here is the link:
https://www.berrybase.de/sensoren-modul ... spberry-pi

Is it easier to use a flexible adafruit display with the adafruit ESP32 feather board? We have tried almost everything to make it work with the Waveshare display, but I don't know if it makes a difference to buy a new display :)

Kind regards,
Naja

NajaAls
 
Posts: 7
Joined: Wed Mar 31, 2021 3:23 am

Re: Help with display and ESP32 feather board

by adafruit_support_carter on Mon Apr 26, 2021 10:47 am

It could be that your hardware is OK, but just not working with the Adafruit library. We've only tested the library against the EPD items the Adafruit shop. That looks like the same EPD as offered here:
https://www.adafruit.com/product/4262

There may be some pin differences between the Adafruit library and that HAT product you are using? Not sure, but if the schematics are available, you could carefully look through that to verify what pins are what and then double check against what is being setup in the Adafruit library. But still no guarantee it will work.

adafruit_support_carter
 
Posts: 20281
Joined: Tue Nov 29, 2016 2:45 pm

Re: Help with display and ESP32 feather board

by NajaAls on Tue Apr 27, 2021 4:49 am

Thank you, for your response. We have decided to buy the adafruit flexible 2.9 display, because we have the idea that it might be easier to work with. We already have the Adafruit ESP32 feather board, feather friend, Lipo battery, cable, and cable extender thingy. Is there anything else we need to buy to make this work? We are located in Denmark, so how long is the estimated delivery time if we order with Express shipping?

Kind regards,
Naja

NajaAls
 
Posts: 7
Joined: Wed Mar 31, 2021 3:23 am

Re: Help with display and ESP32 feather board

by adafruit_support_carter on Tue Apr 27, 2021 11:34 am

Just to make sure we're looking at the exact same hardware, for the items you mention already having:

This is the "feather board"?
https://www.adafruit.com/product/3405

This is the "feather friend"?
https://www.adafruit.com/product/4446

This is the "cable"?
https://www.adafruit.com/product/4230

This is the "cable extender thingy"?
https://www.adafruit.com/product/4524

adafruit_support_carter
 
Posts: 20281
Joined: Tue Nov 29, 2016 2:45 pm

Re: Help with display and ESP32 feather board

by NajaAls on Tue Apr 27, 2021 2:53 pm

Yes! Except this is the extender we have :)

https://www.adafruit.com/product/3671

NajaAls
 
Posts: 7
Joined: Wed Mar 31, 2021 3:23 am

Re: Help with display and ESP32 feather board

by adafruit_support_carter on Wed Apr 28, 2021 11:09 am

I think you are OK except for the extender. That PID 3671 is for use with different hardware (mostly Raspberry Pi related). For working with the EPD's, you'll want the PID 4524.

adafruit_support_carter
 
Posts: 20281
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.