Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpython

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ed_win
 
Posts: 6
Joined: Mon Feb 05, 2018 4:07 am

Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpython

Post by ed_win »

Hi.
I failled to use the Adafruit 2.7" Tri-Color eInk / ePaper Display with SRAM - Red Black White ID: 4098 with a feather M4 and circuitpyton.
I succeed with the arduino driver (Adafruit_IL91874 epd) but i don't find this driver in the circuitpython repository (only the Adafruit_IL0373 epd).
Is there a tips to use it with circuitpython or the driver is just no yet ready?
Sorry for my poor english level and if i put my question in a wrong place.
Cordially
Edwin

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt

Post by adafruit_support_carter »

Can you post your CircuitPython code.

User avatar
ed_win
 
Posts: 6
Joined: Mon Feb 05, 2018 4:07 am

Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt

Post by ed_win »

adafruit_support_carter wrote:Can you post your CircuitPython code.
Hi,
Here is the code I used.
The only change I made to the example are pin number and resolution:

Code: Select all

import digitalio
import busio
import board
from adafruit_epd.epd import Adafruit_EPD
from adafruit_epd.il0373 import Adafruit_IL0373
 
# create the spi device and pins we will need
spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
ecs = digitalio.DigitalInOut(board.D10)
dc = digitalio.DigitalInOut(board.D9)
srcs = digitalio.DigitalInOut(board.D5)
rst = digitalio.DigitalInOut(board.D11)
busy = digitalio.DigitalInOut(board.D6)
 
# give them all to our driver
display = Adafruit_IL0373(264, 176, rst, dc, busy, srcs, ecs, spi)
 
# clear the buffer
display.clear_buffer()
 
r_width = 5
r_pos = display.height
 
color = Adafruit_EPD.BLACK
while r_pos > display.height/2:
    if r_pos < display.height - 50:
        color = Adafruit_EPD.RED
    display.rect(display.width - r_pos, display.height - r_pos,
                 display.width - 2*(display.width - r_pos),
                 display.height - 2*(display.height - r_pos), color)
    r_pos = r_pos - r_width
 
display.display()
It seems to re-display the last image i used with the arduino code.
no rectangle...
no rectangle...
eink.JPG (885.39 KiB) Viewed 259 times
Thank you for your attention.
Cordially
Edwin

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt

Post by adafruit_support_carter »

Thanks. Looks like you're running the example from here:
https://learn.adafruit.com/adafruit-ein ... ython-code

Can you post a photo showing how you have the display wired to your main board.

User avatar
ed_win
 
Posts: 6
Joined: Mon Feb 05, 2018 4:07 am

Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt

Post by ed_win »

adafruit_support_carter wrote:Thanks. Looks like you're running the example from here:
https://learn.adafruit.com/adafruit-ein ... ython-code

Can you post a photo showing how you have the display wired to your main board.
I don't success to have a readable picture:
eink2.JPG
eink2.JPG (245.52 KiB) Viewed 244 times
feather M4 -> 2.7 eink:
3V -> VIN
-> 3v3
Gnd -> GND
SCK -> SCK
MO -> MOSI
MI -> MISO
11 -> RST
10 -> ECS
9 -> D/C
6 -> Busy
5 -> SRCS
-> SDCS
-> ENA

I also try with:
13-> busy
12 -> SRCS
With the pin modified code.
With no success.

That seem to work with the same wiring and arduino example code.

Cordially
Edwin

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt

Post by adafruit_support_carter »

It may be soldering related - it looks a little thin on some of your pins. But since it worked OK using Arduino, let's not worry about that yet.

It looks like your wiring and code modification are OK. When you ran the CircuitPython code, did the display do anything? You saw with the Arduino - the refresh is pretty slow and flashes the screen a bit. Did you see any of that?

As another test - can you back to Arduino and make sure it still works there. Try changing the output to something else and make sure the display updates to that. That way we'll know it's just a CircuitPython issue.

User avatar
ed_win
 
Posts: 6
Joined: Mon Feb 05, 2018 4:07 am

Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt

Post by ed_win »

Hi,
When you ran the CircuitPython code, did the display do anything? You saw with the Arduino - the refresh is pretty slow and flashes the screen a bit. Did you see any of that?
When I ran the circuitpython code the display refresh. The refresh is pretty slow and flashes the screen a bit.
As another test - can you back to Arduino and make sure it still works there
Yes it still work.
Try changing the output to something else and make sure the display updates to that
Yes it still work on arduino but not on circuitpython. I tried to change every wire except hardware spi (MOSI/MISO/SCK).

With all of this test, i noticed something:
The circuit python code seem to display with success the content of SRAM:
- if i use arduino code before and without disconnect the feather switch to circuitpython, it display exactly the same picture than previously with arduino.
- if i run the circuitpython directly after switch-on, it display a bunch of pixels. I suppose the SRAM is 'empty' due to switch off.
eink3.JPG
eink3.JPG (54.73 KiB) Viewed 221 times
The UF2 file i use is this one:
https://github.com/adafruit/circuitpyth ... -3.1.2.uf2

The beginning of the VERSIONS.txt file is as follows ( I use https://github.com/adafruit/Adafruit_Ci ... 190226.zip):

Code: Select all

20190225
https://github.com/adafruit/Adafruit_CircuitPython_74HC595/releases/tag/1.0.2
https://github.com/adafruit/Adafruit_CircuitPython_ADS1x15/releases/tag/1.0.2
[...]
https://github.com/adafruit/Adafruit_CircuitPython_EPD/releases/tag/1.2.1
[...]
Thanks a lot for your time.
Cordially
Edwin

User avatar
adafruit2
 
Posts: 22144
Joined: Fri Mar 11, 2005 7:36 pm

Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt

Post by adafruit2 »

woops shoot we thought it was the same chipset. please subscribe to this issue https://github.com/adafruit/Adafruit_Ci ... D/issues/8 we'll update it as soon as we port over the new driver.

User avatar
ed_win
 
Posts: 6
Joined: Mon Feb 05, 2018 4:07 am

Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt

Post by ed_win »

adafruit2 wrote:woops shoot we thought it was the same chipset. please subscribe to this issue https://github.com/adafruit/Adafruit_Ci ... D/issues/8 we'll update it as soon as we port over the new driver.
Done.
Thanks a lot for your reactivity, it's a real pleasure to play with your product.
Cordially
Edwin

User avatar
ed_win
 
Posts: 6
Joined: Mon Feb 05, 2018 4:07 am

Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt

Post by ed_win »

Hi,
It works very well with the new driver! Thank's a lot!

I don't know if it's normal but I needed to copy the font5x8.bin file ( located in the exemple folder) to the root of CIRCUITPY(D:).

Thank's again.
Edwin

User avatar
adafruit2
 
Posts: 22144
Joined: Fri Mar 11, 2005 7:36 pm

Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt

Post by adafruit2 »

yep thats normal

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”