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
Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpython
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- ed_win
- Posts: 6
- Joined: Mon Feb 05, 2018 4:07 am
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt
Can you post your CircuitPython code.
- ed_win
- Posts: 6
- Joined: Mon Feb 05, 2018 4:07 am
Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt
Hi,adafruit_support_carter wrote:Can you post your CircuitPython code.
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()
Cordially
Edwin
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt
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.
https://learn.adafruit.com/adafruit-ein ... ython-code
Can you post a photo showing how you have the display wired to your main board.
- ed_win
- Posts: 6
- Joined: Mon Feb 05, 2018 4:07 am
Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt
I don't success to have a readable picture: feather M4 -> 2.7 eink: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.
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
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt
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.
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.
- ed_win
- Posts: 6
- Joined: Mon Feb 05, 2018 4:07 am
Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt
Hi,
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. 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):
Thanks a lot for your time.
Cordially
Edwin
When I ran the circuitpython code the display refresh. The refresh is pretty slow and flashes the screen a bit.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?
Yes it still work.As another test - can you back to Arduino and make sure it still works there
Yes it still work on arduino but not on circuitpython. I tried to change every wire except hardware spi (MOSI/MISO/SCK).Try changing the output to something else and make sure the display updates to that
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. 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
[...]
Cordially
Edwin
- adafruit2
- Posts: 22144
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt
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.
- ed_win
- Posts: 6
- Joined: Mon Feb 05, 2018 4:07 am
Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt
Done.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.
Thanks a lot for your reactivity, it's a real pleasure to play with your product.
Cordially
Edwin
- ed_win
- Posts: 6
- Joined: Mon Feb 05, 2018 4:07 am
Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt
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
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
- adafruit2
- Posts: 22144
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Adafruit 2.7" Tri-Color eInk/ ePaper Display, circuitpyt
yep thats normal
Please be positive and constructive with your questions and comments.