Adafruit Industries, Essential service and business: NYC – Executive Order 202.6 - Read more.
0

EPD FLEX DISPLAY WITH STM32F405
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

EPD FLEX DISPLAY WITH STM32F405

by ashluzas on Sun Mar 08, 2020 8:08 pm

I am having trouble getting the flex EPD display to work with the STM32 feather.
Everything is seems to be connected correctly as I can get the ruler bitmap example to display.
When I try to use the Adafruit_EPD library to draw some lines and text the code throws an "undefined name 'display' " error for each display. line of code.
I have the libraries on the device and am not getting any library call errors up front.
I have attached the code for reference.
Any thoughts?

Thanks

Alan
code.draw rectangles.txt
(513 Bytes) Downloaded 4 times

ashluzas
 
Posts: 4
Joined: Wed Jan 30, 2019 1:39 am

Re: EPD FLEX DISPLAY WITH STM32F405

by tannewt on Mon Mar 09, 2020 6:36 pm

What code did you use to get the image showing up? The EPD library doesn't work with `displayio` so that may be the source of confusion. `displayio` has a different approach to displaying info that raw access. More info on it is here: https://learn.adafruit.com/circuitpytho ... -displayio The display shapes library can be helpful too: https://circuitpython.readthedocs.io/pr ... en/latest/

tannewt
 
Posts: 1536
Joined: Thu Oct 06, 2016 8:48 pm

Re: EPD FLEX DISPLAY WITH STM32F405

by ashluzas on Mon Mar 09, 2020 10:21 pm

The bmp ruler code that I got to work uses displayio without Adafruit_EPD, see attached.
The code that I am having trouble with only calls Adafruit_EPD. Any of the display.xx calls to the library are not working.
Its almost like the library cannot be found, even though the code check is ok.

Thanks

Alan
Attachments
code.2.9 display example circuit python.txt
(2.46 KiB) Downloaded 1 time

ashluzas
 
Posts: 4
Joined: Wed Jan 30, 2019 1:39 am

Re: EPD FLEX DISPLAY WITH STM32F405

by tannewt on Tue Mar 10, 2020 12:43 pm

displayio and EPD are two separate display systems. They can't be mixed. What are you trying to do?

tannewt
 
Posts: 1536
Joined: Thu Oct 06, 2016 8:48 pm

Re: EPD FLEX DISPLAY WITH STM32F405

by ashluzas on Tue Mar 10, 2020 1:00 pm

Thanks for following up
I understand that displayio and Adafruit_EPD are different.
I can't get Adafruit_EPD to work.

ashluzas
 
Posts: 4
Joined: Wed Jan 30, 2019 1:39 am

Re: EPD FLEX DISPLAY WITH STM32F405

by tannewt on Tue Mar 10, 2020 1:50 pm

I've only worked with `displayio` so I can't help much with the EPD library. What example are you starting with?

tannewt
 
Posts: 1536
Joined: Thu Oct 06, 2016 8:48 pm

Re: EPD FLEX DISPLAY WITH STM32F405

by ashluzas on Wed Mar 11, 2020 1:29 am

I have been trying to get https://learn.adafruit.com/adafruit-ein ... ython-code to work with my flexible EPD unit.

I am just trying to draw some lines, rectangles, and text on the display, would you recommend displayio over Adafruit_EPD?

ashluzas
 
Posts: 4
Joined: Wed Jan 30, 2019 1:39 am

Re: EPD FLEX DISPLAY WITH STM32F405

by tannewt on Wed Mar 11, 2020 11:20 am

I do recommend displayio because it works better with text. (It doesn't work on Blinka yet so plain "Python" examples may still use Adafruit_EPD.)

For displayio you can look at LCD examples as well, the API works the same except for how the palette is interpreted.

tannewt
 
Posts: 1536
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.