1. Getting Started
Installing paperd.ink library & dependencies in Arduino IDE
Arduino IDE
Please download the Arduino IDE version 1.x from Arduino’s site →.
⚠ To use bitmaps please install Arduino IDE version 1.x, the File System uploader is incompatible with version 2.x.
ESP32 Board
In the Arduino IDE, go to
File > Preferences
Find the
Additional Board Manager URLs
field to enter the following URL and clickOK
https://dl.espressif.com/dl/package_esp32_index.json
- Open the Arduino IDE and go to
Tools > Board > Boards Manager
- In the Boards Manager, search for
ESP32
and install theESP32 by Espressif Systems board
. - After the installation is complete, go to
Tools > Board > ESP32 Arduino board
and select theESP32 Dev Module
board to start working with your paperd.ink device.
paperd.ink Library
- Install the latest version of paperd.ink library from the Arduino library manager by searching for
Paperdink
. The Arduino IDE will automatically install any necessary dependencies. - To access the examples provided by the library, go to
File > Examples > Paperdink
. - For more information about the examples and how to configure them, visit the paperd.ink GitHub page →
ESP32 Sketch Data Upload
- Some examples provided by the paperd.ink library require uploading bitmaps to the ESP32 flash storage.
- To learn how to do this, visit the following tutorial: Install ESP32 Filesystem Uploader Arduino IDE →.
- This tutorial will guide you through the process of installing the necessary tool and uploading data to the ESP32.
CP210x USB to UART Bridge VCP Drivers (Windows/Mac)
If your computer is unable to recognize your paperd.ink device, you will need to install the CP210x driver. To do this, follow these steps:
- Visit the Silicon Labs website and download the CP210x USB to UART Bridge VCP Drivers from the top menu here →.
- Follow the instructions provided by the setup to install the driver on your computer.
- Once the driver is installed, your computer should be able to recognize and communicate with your paperd.ink device. A restart might be required.
Hello World
Create two files hello_world.ino
and config.h
in a folder called hello_world
.
The name of the folder and ino file should be the same.
The file named config.h
merely sets the type of display you have:
#define PAPERDINK_DEVICE Paperdink_Classic
// #define PAPERDINK_DEVICE Paperdink_Merlot
The file hello_world.ino
looks like this:
#include "config.h"
#include <Paperdink.h>
PAPERDINK_DEVICE Paperdink;
void setup() {
/* Initialize paperd.ink device */
Paperdink.begin();
/* Enable power to the display */
Paperdink.enable_display();
/* Clear the background */
Paperdink.epd.fillScreen(GxEPD_WHITE);
/* By default the text is white and thus invisible, make it black */
Paperdink.epd.setTextColor(GxEPD_BLACK);
/* Start writing in the top left corner */
Paperdink.epd.setCursor(0, 0);
Paperdink.epd.print("Hello World!");
/* Flush the buffer to the screen */
Paperdink.epd.display();
/*
For more functions available on the `epd` member see:
https://learn.adafruit.com/adafruit-gfx-graphics-library?view=all
*/
}
void loop() {}