Skip to content

Quick hack to make the IT8951 display driver board work with Arduino and ESP32 boards. Including example code.

Notifications You must be signed in to change notification settings

clashman/it8951

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick hack to port the IT8951 display driver to Arduino

These instructions are as simple as possible to allow for easy reproduction. I don't endorse using the Arduino IDE for anything serious. The Espressif/IDF environment provides a way better experience.

The pins need 3.3V! The original Arduino only has 5V pins. Don't use that board without voltage dividers.

Original code taken from: https://github.com/waveshare/IT8951/

Usage

  1. Get a microcontroller and a Waveshare display with IT8951 driver board
  2. Wire your Arduino-compatible board with the following pins
    • Power -> 5V (USB)
    • Ground -> Ground
    • MISO (blue) 19
    • MOSI (yellow) 18
    • SCK (orange) 5
    • CS (green) 12
    • RESET (white) 16
    • HRDY (purple) 17
  3. Download Arduino IDE
    • install IDE support for ESP32 (Tutorial)
  4. Flash this repo's code to the board
  5. Enjoy your success

Wiring

Wiring

Result

Result

Example Picture

The example picture that will show up on the epaper is Obernberg am Inn Adlerwarte: Rotmilan (CC-BY-SA-4.0). It was resized and encoded using 4 bit per pixel, little-endian-like.

To reproduce:

  • ./convert_image.py 400 400 pic.jpg
  • xxd -i pic > pic.ino
  • manually insert width and height variable into pic.ino (unsigned int pic_width = 400; unsigned int pic_height = 400;)

The ESP's RAM is limited, so if you want full resolution images, you need to stream them to the device via WiFi or load them from flash storage.

About

Quick hack to make the IT8951 display driver board work with Arduino and ESP32 boards. Including example code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published