2.7" Tri-color e-Ink on UNO w/ embedded library

Last year, I purchased from surplus sales

URL

I have found this hardware to be rather interesting and I have the unit running on an original 8-bit UNO which is no major deal as that platform is one of the recommended platforms. The display came with a daughter-board that plugs onto the UNO, thus there is no loose wiring necessary.

Once I got the software libraries download and installed, I thought that I would "embed" the libraries into the sketch folder, eliminating all sketch references to the standard Arduino\libraries folder. I do this routinely with all of my public projects and it is also a great method of providing code to others since a ZIP file essentially contains everything necessary to compile under Arduino IDE.

In addition to compiling on IDE 1.8.19, I tried successfully on IDE 2.0.0 RC3.

I took some liberties with the example sketch and what is attached in the ZIP is a multi-font demonstration. I tested the triple color sketch and it worked as intended, but my personal use will be B/W but I do intend on multiple-sized fonts.

Please note that I'm providing the sketch as a rework of the Seeed original example. I think it may be helpful to others that are experimenting with e-INK but understand that I am not in a position to answer software questions regarding the library files included nor do I intend on contemplating changes to the sketch; pretty much everything is explained in comments within the sketch. So, please consider this an as-in example. Hopefully it will be interesting and useful.

Ray

/*
 e-Paper test code for Seeed 2.7" e-Ink display hosted on Arduino UNO
 This version removes the Seeed bitmap imagedata from the source
   Compiled 20220617 using Linux Mint and ArduinoIDE 1.8.19
    Sketch uses 21510 bytes (66%) of program storage space. Maximum is 32256 bytes.
    Global variables use 679 bytes (33%) of dynamic memory, leaving 1369 bytes for local variables. Maximum is 2048 bytes.

  Using Arduino 2.0.0rc3 the following stats
    Sketch uses 20730 bytes (64%) of program storage space. Maximum is 32256 bytes.
    Global variables use 579 bytes (28%) of dynamic memory, leaving 1469 bytes for local variables. Maximum is 2048 bytes.
 */

**Full code in the attached ZIP**


eINK_2_multiline-multifont.zip (27.9 KB)

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.