Drivers for Waveshare 2.13inch E-Ink display
Re: Drivers for Waveshare 2.13inch E-Ink display
Thanks for all of the help & suggestions, yes I use a TFT or OLED for permanent powered devices, but I am new to these screens and really trying to find out their capabilities and limitations and letting others know what I find so that they don't have to re-invent the wheel.
Both the applications I have in mind would be deployed on the other side of the world with no human intervention and running for over a year actually I am adding the display capability to existing designs which are already deployed and running.
Both the applications I have in mind would be deployed on the other side of the world with no human intervention and running for over a year actually I am adding the display capability to existing designs which are already deployed and running.
Re: Drivers for Waveshare 2.13inch E-Ink display
Hi to all,
I'm trying to connect an ESP32 module (HelTec WIFI KIT-32) with WaveShare 296x128 2.9inch two color.
Using mcuser drivers for Waveshare e-paper, I receive this code error :
MPY: soft reboot
Traceback (most recent call last):
File "main.py", line 33, in <module>
File "epaper2in9.py", line 148, in clear_frame_memory
TypeError: can't convert bytes to int
MicroPython v1.10-98-g4daee3170 on 2019-02-14; ESP32 module with ESP32
main.py is the same of test.py , I changed only the SPI initialization to adapt it to my board.
Main.py line 33:
epaper2in9.py line 148:
what's wrong?
Thanks
Alberto
I'm trying to connect an ESP32 module (HelTec WIFI KIT-32) with WaveShare 296x128 2.9inch two color.
Using mcuser drivers for Waveshare e-paper, I receive this code error :
MPY: soft reboot
Traceback (most recent call last):
File "main.py", line 33, in <module>
File "epaper2in9.py", line 148, in clear_frame_memory
TypeError: can't convert bytes to int
MicroPython v1.10-98-g4daee3170 on 2019-02-14; ESP32 module with ESP32
main.py is the same of test.py , I changed only the SPI initialization to adapt it to my board.
Main.py line 33:
Code: Select all
e.clear_frame_memory(b'\xFF')
Code: Select all
self._data(bytearray([color]))
Thanks
Alberto
Re: Drivers for Waveshare 2.13inch E-Ink display
The sample code is wrong. Using
in test.py might work. Alternatively changing epaper2in9.py
Code: Select all
e.clear_frame_memory(0xff)
Code: Select all
self._data(bytearray(color))
Re: Drivers for Waveshare 2.13inch E-Ink display
Thanks a lot!Roberthh wrote: ↑Sat Feb 16, 2019 12:00 pmThe sample code is wrong. Usingin test.py might work.Code: Select all
[b]e.clear_frame_memory(0xff)[/b]
I don't see anything on the display but the code works now!
Re: Drivers for Waveshare 2.13inch E-Ink display
Ok, I made progress! Now SPI communication works fine.
This is the configuration that works fine with my devices, HelTec WIFI KIT-32 and WaveShare 296x128 2.9inch two color:
Thanks for your help!
This is the configuration that works fine with my devices, HelTec WIFI KIT-32 and WaveShare 296x128 2.9inch two color:
Code: Select all
import machine
import epaper2in9
from machine import SPI, Pin
spi = SPI(-1, baudrate=80000000, polarity=0, phase=0, bits=8, firstbit=0, sck=machine.Pin(18), mosi=machine.Pin(23), miso=machine.Pin(19))
cs = machine.Pin(2)
dc = machine.Pin(13)
rst = machine.Pin(14, machine.Pin.OUT)
busy = machine.Pin(27, machine.Pin.OUT)
e = epaper2in9.EPD(spi, cs, dc, rst, busy)
e.init()
w = 128
h = 296
x = 0
y = 0
Re: Drivers for Waveshare 2.13inch E-Ink display
Hi, is there anybody who can post the physical wiring of the Waveshare -Display? When looking to the datasheet, there are so many Voltages to connect.
Re: Drivers for Waveshare 2.13inch E-Ink display
does https://github.com/mcauser/micropython-waveshare-epaper work only for epaper connected to waveshare's driver board?
is there document on how to make a driver circuit?
BTW, it seems that the discusses on this forum focus on software. Is there any forum which dedicates to circuit?
thanks
is there document on how to make a driver circuit?
BTW, it seems that the discusses on this forum focus on software. Is there any forum which dedicates to circuit?
thanks
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Drivers for Waveshare 2.13inch E-Ink display
A good source for schematics is Adafruit: they do various ePaper displays and publish full details of hardware. In practice you need a controller chip with accompanying passive components. There is normally little point in developing your own solution as this really amounts to copying a reference design. But it might make sense to accommodate space constraints.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.