How to Refresh E-ink
This topic aims to describe refreshing the E-ink with Arduino and the code provided by us.
Some screen does not support grayscale, so when making the image, you will need to convert it to a pure black and white image, the image resolution cannot be larger than the screen resolution.
Using code refresh E-ink, you’ll need a tool for image transcoding, in this case Convertio.
Open Convertio: https://convertio.co/zh/xbm-converter/, and select the image that needs to be taken,
Copy and save the code in the red box you get as shown below.
Connect the development board with E-ink
Connect the driver board with E-ink
The development board with E-ink needs to pass through the driver board. Heltec has a number of Einks already integrated with driver boards.
Connect the development board with driver board
VCC pins on driver board to the
3V3 pins of development board, respectively.
Downloading the code
Install development environment
Install our development environment,
WiFi LoRa 32 was used in the example，go to:Esp32 Quick start.
Opening the example code
WiFi LoRa 32to the computer using a TYPE-C wire.
Click ‘tool’ and select board and port.
Open the example we provided as shown below.
Set the pin
According to the prompts of the blue box, fill in the pins connected on the development board in the red box section. ‘rst’ and ‘MISO’ will not be used in this example, set these two pins to ‘-1’ and ‘-2’.
Fill in the red box: 3,5,7,6,4.
Do not write ‘3,5,7,6,4’ as GPIO3~GPIO4.
Setting image information
Replace the contents of
image.h with the file Convertio generated earlier, as shown below.
Be careful to fill in the data of Weight and Hight in the red box part of the figure, rather than copying this part directly.
Click upload, when the program is uploaded, the image is displayed on E-Ink.