0

Flexible Display Not Working
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Flexible Display Not Working

by nasci003 on Tue Jul 20, 2021 3:43 pm

The display I am using has Part Number: WFT0213CZ16 LW, I connected it to the E-Ink Feather Friend (ThinkInk) but I have gotten nothing on the display, it does not even clear the "OK" screen that it comes with.

Any suggestions are appreciated!

nasci003
 
Posts: 11
Joined: Fri Jul 02, 2021 3:49 pm

Re: Flexible Display Not Working

by mikeysklar on Wed Jul 21, 2021 6:28 pm

Is the flexible display one of ours? If so what is the product# we use for it?

mikeysklar
 
Posts: 5596
Joined: Mon Aug 01, 2016 8:10 pm

Re: Flexible Display Not Working

by nasci003 on Thu Jul 22, 2021 3:05 pm

Product number 4243 with SID: 10.2.3

nasci003
 
Posts: 11
Joined: Fri Jul 02, 2021 3:49 pm

Re: Flexible Display Not Working

by nasci003 on Thu Jul 22, 2021 3:06 pm

We have purchased a second flexible screen from adafruit with 4262, SID 7.10.3

nasci003
 
Posts: 11
Joined: Fri Jul 02, 2021 3:49 pm

Re: Flexible Display Not Working

by mikeysklar on Thu Jul 22, 2021 5:04 pm

Let's start with the display you have now the 2.13" Flexible monochrome and the eInk Feather Friend.

Which controller are you using? Is the Feather Friend being "stacked" or manually connected?

Which example code are you running?

mikeysklar
 
Posts: 5596
Joined: Mon Aug 01, 2016 8:10 pm

Re: Flexible Display Not Working

by nasci003 on Thu Jul 22, 2021 9:19 pm

I am using the Elegoo Uno R3 + E-ink Feather Friend + 2.13" E-ink Monochrome Display.
Below is a picture of how connections are being made.
connections.jpg
connections.jpg (249.43 KiB) Viewed 62 times


Here is the code that I am running. Going off the Product ID: 4243, I found this: https://www.adafruit.com/product/4243
So I assumed I should uncomment either Adafruit_UC8151D or Adafruit_IL0373 since these are 212x104 and not Adafruit_SSD1680 which is 250x122.

Code: Select all | TOGGLE FULL SIZE
/***************************************************
  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_EPD.h"


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



// Uncomment the following line if you are using 2.13" EPD with UC8151D
//Adafruit_UC8151D display(212, 104, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);

//Uncomment the following line if you are using 2.13" EPD with IL0373
Adafruit_IL0373 display(212, 104, EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);

#define FLEXIBLE_213


#define COLOR1 EPD_BLACK
#define COLOR2 EPD_RED


void setup() {
  Serial.begin(115200);
  //while (!Serial) { delay(10); }
  Serial.println("Adafruit 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

  /*// large block of text
  display.clearBuffer();
  testdrawtext("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur adipiscing ante sed nibh tincidunt feugiat. Maecenas enim massa, fringilla sed malesuada et, malesuada sit amet turpis. Sed porttitor neque ut ante pretium vitae malesuada nunc bibendum. Nullam aliquet ultrices massa eu hendrerit. Ut sed nisi lorem. In vestibulum purus a tortor imperdiet posuere. ", COLOR1);
  display.display();

  delay(5000);

  display.clearBuffer();
  for (int16_t i=0; i<display.width(); i+=4) {
    display.drawLine(0, 0, i, display.height()-1, COLOR1);
  }

  for (int16_t i=0; i<display.height(); i+=4) {
    display.drawLine(display.width()-1, 0, 0, i, COLOR1);  // on grayscale this will be mid-gray
  }
  display.display();*/
}

void loop() {

  Serial.println("My msg");
  display.clearBuffer();
  display.setTextSize(1);
  display.setCursor(0, 40);
  display.setTextColor(EPD_BLACK);
  display.print(" CALIFORNIA STATE UNIVERSITY, SAN MARCOS"); 
  display.setTextSize(2);
  display.setCursor((display.width() - 144)/2,55);
  display.setTextColor(EPD_BLACK);
  display.print("Electrical"); 
  display.setTextSize(2);
  display.setCursor((display.width() - 144)/2,73);
  display.setTextColor(EPD_BLACK);
  display.print("Engineering"); 
  display.display();

  delay(2000);
 
}


void testdrawtext(const char *text, uint16_t color) {
  display.setCursor(0, 0);
  display.setTextColor(color);
  display.setTextWrap(true);
  display.print(text);
}


Here is a clip of what happens when I upload this code.
https://imgur.com/gallery/gF5WF36

Thanks!

nasci003
 
Posts: 11
Joined: Fri Jul 02, 2021 3:49 pm

Re: Flexible Display Not Working

by mikeysklar on Fri Jul 23, 2021 12:35 pm

The controller you are using is 5v based so it will not be compatible with the Feather Friend you are using.

Ideally you would use a Feather based controller such as the Feather M4 Express:

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

Another option would be to use the non-FeatherWing form factor breakout that is 5v logic safe.

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

mikeysklar
 
Posts: 5596
Joined: Mon Aug 01, 2016 8:10 pm

Re: Flexible Display Not Working

by nasci003 on Fri Jul 23, 2021 2:02 pm

We just ordered the Adafruit Feather M0 Adalogger Prod# 2796, will this work?

Even though the microcontroller I am using is 5V, I am using the 3.3V pin to power the Feather Friend, so shouldn't it work theoretically ? Or am I missing something?

nasci003
 
Posts: 11
Joined: Fri Jul 02, 2021 3:49 pm

Re: Flexible Display Not Working

by nasci003 on Fri Jul 23, 2021 2:02 pm

We just ordered the Adafruit Feather M0 Adalogger Prod# 2796, will this work?

Even though the microcontroller I am using is 5V, I am using the 3.3V pin to power the Feather Friend, so shouldn't it work theoretically ? Or am I missing something?

nasci003
 
Posts: 11
Joined: Fri Jul 02, 2021 3:49 pm

Re: Flexible Display Not Working

by mikeysklar on Fri Jul 23, 2021 2:51 pm

The Adafruit Feather M0 Adalogger will work.

The controller you are using is outputting 5v on all of it's GPIO pins connected to the Feather Friend so there is a risk that the Friend is already damaged from the over voltage.

mikeysklar
 
Posts: 5596
Joined: Mon Aug 01, 2016 8:10 pm

Re: Flexible Display Not Working

by nasci003 on Fri Jul 23, 2021 4:06 pm

Arduino IDE does not seem to recognize the Feather M0 Adalogger, I have the Arduino SAMD library installed and the board i selected was Arduino M0.
The IDE doesnt leave the uploading screen. Below is a picture for reference.
featherM0.jpg
featherM0.jpg (479.2 KiB) Viewed 46 times

nasci003
 
Posts: 11
Joined: Fri Jul 02, 2021 3:49 pm

Re: Flexible Display Not Working

by mikeysklar on Mon Jul 26, 2021 1:40 pm

You have the right idea that there is a custom board library required, but you have installed the incorrect one.

https://learn.adafruit.com/add-boards-a ... v164/setup

The above link will walk you through it, but you need the "Adafruit SAMD Boards" not the Arduino one.

mikeysklar
 
Posts: 5596
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.