In this guide we discuss the GxEPD2 eInk display plugin for tcMenu, showing how to use and configure it for menu use.
From an API/interface perspective, GxEPD2 is roughly equivalent to Adafruit_GFX, but with some additional features and optimizations for eInk displays. You'll need to install the GxEPD2 library from the Arduino library manager before you can use it with tcMenu.
Some things to bear in mind. These displays are slow, very slow in fact, at the moment they do not interact with input systems particularly well, and we'd only recommend using them when the hardware is displaying information that doesn't change often.
Themes tell the menu library how to draw onto the display. You can read about them here: rendering-with-themes-icons-grids.md.
Presently there's only one theme for these displays, but it is highly configurable. This theme is the "EInk block theme".
Before choosing a font, first select if you want to use tcUnicode fonts, for regular fonts provided by the library. You can the guide on fonts and how to use them.
Each item has padding included within the background itself. You can set the padding separately for the title and each item. You can also set the gap between the title and first item.
You can also select how the title is presented, if it should be always visible and not scroll, or just part of the menu and scroll off screen.
You can then set the theme colors for regular items, and for title items. We don't know if the color you choose is available on your display, so you may need to experiment. For this we recommend you use the GxEPD2 library's color definitions as they should work with your hardware.
Want to let us know about something?