All examples included in our library can be found here: Examples for Inkplate After you download inkplate Arduino library you will have all examples inside Arduino IDE. There are comments in all examples that describe how it works and what hardware you need.
4.1. Basic Inkplate Functionality¶
This example shows basic Inkplate functionalities in black and white mode (writing text, drawing shapes and images).
This example shows basic Inkplate functionalities in gray mode (writing text, drawing shapes and images).
Simple Inkplate example showing all colors of the Inkplate..
Simple Inkplate example showing drawing functionalities of the Inkplate 6COLOR library.
This example shows basic Inkplate functionalities in red, black and white mode (writing text, drawing shapes and images) on Inkplate 2.
This example shows drawing text with shadow, you can change text color and shadow color.
4.2. Advanced Inkplate Features¶
This example shows how to use Inkplate as a peripheral device over Bluetooth. Note: for this to work you need to use ESP32 Wroover Board definition, as ours currently has a bug :(
For this example you will need a Lithium battery (3.6V) with two pin JST connector. This example will show you how to read voltage of the battery and read temperature from on-board temperature sensor which is part of TPS65186 e-paper PMIC. NOTE: In order to read temperature, e-paper has to be refreshed at least one time
For this example you will need only a micro USB cable, Inkplate, 330 Ohm resistor and LED diode. This example will show you how you can manipulate with I/Os of MCP23017 Expander. You can only manipulate with Port B of MCP23017 (GPB1-GPB7). Port A is used for epaper panel and TPS65186 PMIC. GPB0 is used for ESP32 GPIO0 so you can’t use it either.
For this example you will need a micro USB cable, Inkplate and a SD card loaded with image1.bmp and image2.bmp file that can be found inside folder of this example. This example will show you how you can read .bmp and .jpeg files (pictures) from SD card and display that image on e-paper display.
For this example you will need only a micro USB cable, Inkplate and a SD card loaded with text.txt file that can be found inside folder of this example. This example will show you how to open .txt files and display the content of that file on Inkplate epaper display.
For this example you will need a micro USB cable, Inkplate and a device with WiFi and Internet brower (PC, Laptop, Smartphone etc). This example will show you how you can use Inkplate as a small and simple standlone Web Server. You need to connect to Inkplate with WiFi and open IP address shown on Inkplate display.
For this example you will need USB cable, Inkplate and stable WiFi Internet connection. This example will show you how to connect to WiFi network, get data from Internet and display that data on epaper. This example is NOT on to how to parse HTML data from Internet - it will just print HTML on the screen.
4.3. Community contributions¶
This example will try to remove heavy burn-in visible on the panel. Set number of refresh / clear cycles and upload the program.
This example should not be used if you dont know what VCOM is and what exactly you are doing as it can damage panel.
Using this sketch, you don’t have to program and control e-paper using Arduino code. Instead, you can send UART command. This give you flexibility that you can use this Inkplate on any platform.
This example will show you how you can use Inkplate 6COLOR to display map data. This example gets html data from crowdsource campaing and displays them on Inkplate screen.
This example will show you how you can use Inkplate 6COLOR to random images in the root sdcard folder.
NOTE: This example is only available on Inkplate 10 board.
In order for the image to display correctly on Inkplate, Inkplate needs to have a proper waveform saved in the EEPROM memory. If there is no waveform data available, the message “Waveform load failed! Upload new waveform in EEPROM. Using default waveform.” on the Serial monitor will be displayed (if the Serial.begin() is called before display.begin()). If something like this happens, or you’re not satisfied with the grayscale, you can run this example and choose one of three available waveforms.
Waveforms are responsible for the grayscale image on the e-paper display. It’s just a series of frames that darken or whiten pixels in each frame in order to get desired pixel color. They depend on many parameters like temperature, previous pixel color, next pixel color, and even the type (batch) of the e-paper panel.
Upload this example code on your Inkplate 10. After upload, with touchpad 1 and touchpad 3 choose one of the available waveforms. In the next images, you can see what the correct waveform will look like on the Inkplate. After you find the waveform that best suits for your panel, press touchpad 2 to store it in the EEPROM memory of the ESP32. Calling display.begin() function, the waveform will be copied from EEPROM memory into the library. There is no need for waveform selection before every usage of the Inkplate. One waveform on one Inkplate may not be compatible with another Inkplate (as you can also see in the pictures, there are two different panels, each with its own waveform).
After successfully saving waveform data to EEPROM, it shows the next image.
Waveforms on the Inkplate are reverse engineered and made to best fit a large number of e-paper panels, but they are not perfect.
This example contains three types of clocks. First type is digital clock with 4 digits which displays hours and minutes. Second type is binary clock, which also have digits but displayed in binary numbers. Third type is analog clock with hands.
This example shows how you can set inkplate to show random pictures from web.
This example shows you how to use simple API call without API key. Response from server is in JSON format, so that will be shown too how it is used. What happens here is basically ESP32 sends API call and server returns HTML document containing one random quote and some information about it, then using library ArduinoJSON we extract only quote from JSON data and show it only on Inkplate 2.
This example uses API call to get tim for wanted city and it’s timezone. Fetched data is in JSON format, and library is used to extract data. To choose city just type any part of city’s name and it will be automatically found, but if you type to few letters, any city containig that letters will be found. Only for Inkplate 2.
This example show how to use Google API to show info about some youtube chhannel. You need to register on https://developers.google.com/ and get API key of any kind so you, can use yxour API key in API call. That key you should copy in variable api_key. Second thing you need to get ID of any youtube channel and copy it in channel_id variable. You can get ID by going on any youtube channel profile and copy part of URL link after https://www.youtube.com/channel/ (so just some random text after last backslash). Only for Inkplate 2.