Code Monkey home page Code Monkey logo

waveshare_epd5in83b-adafruitgfx's Introduction

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). On the way I ran into a lot of storage issues ... so I had to write directly into the display, therefor I had to make two private functions from the esp8266_waveshare lib public 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 : / (little ugly. but 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, we need to divide one picture into two pictures, that is, one is black and white, and the other one is red and white. As there is a register controlling the black and white color when transmitting, then another one controls the red and white color. One byte controls 8 pixels in these two registers.

5.83inch e-Paper HAT (B) Manual

waveshare_epd5in83b-adafruitgfx's People

Contributors

tomekness avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.