Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple Arduino example on how to draw on a WaveShare 5.83inch 648x480 (Epd5in83b V2) E-Paper with an ESP8266 using adafruit GFX

waveshare e-paper display

//Based on the esp8266-waveshare-epd drawing example and the adafruit GFX canvas example

to make a long story short: I just wanted to use the adafruit GFX drawing features on a Waveshare ePaper display controlled by an ESP8266 (Node MCU). I ended up using the canvas feature (first draw onto a virtual canvas and then send the finished drawing to the display). Along the way I ran into a lot of storage issues ... so I had to write directly into the display. Therefore, I had to make two private functions from the esp8266_waveshare lib publicly available in my Arduino sketch, but I didn't want to mess with the lib, so I copy-pasted »EPD_5IN83B_V2_SendCommand« and »EPD_5IN83B_V2_SendData« directly into the sketch : / ( a little ugly, but it works)

adafruit GFX Library ---> https://github.com/adafruit/Adafruit-GFX-Library
waveshare ---> https://www.waveshare.com/wiki/E-Paper_ESP8266_Driver_Board

////////////////////////////// be advised

For E-paper displays that support partial refresh, please note that you cannot refresh them with the partial refresh mode all the time. After refreshing partially several times, you need to fully refresh EPD once. Otherwise, the display effect will be abnormal, which cannot be repaired!

Note that the screen cannot be powered on for a long time. When the screen is not refreshed, please set the screen to sleep mode or power off it. Otherwise, the screen will remain in a high voltage state for a long time, which will damage the e-Paper and cannot be repaired!

5.83inch e-Paper HAT (B) Manual

////////////////////////////// how does the ePaper work

*For 5.83inch e-Paper (B), a red-black-white e-paper, the image must be split into two: one black-and-white, and one red-and-white. Separate registers control each color channel during transmission — one for black-and-white, another for red-and-white. Each byte encodes 8 pixels across these two registers.

5.83inch e-Paper HAT (B) Manual

About

arduino example - drawing on a WaveShare 5.83inch 648x480 (Epd5in83b V2) E-Paper with an ESP8266 (Node MCU) using adafruit GFX

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages