This project creates Code128B Barcodes on EPaper displays
This uses the Adafruit 2.13" HD Tri-Color eInk / ePaper Display FeatherWing - 250x122 RW Panel with SSD1680 along with an Adafruit HUZZAH32 – ESP32 Feather Board
Simply send a string of < 17 characters over serial at 115200 baud, and a barcode will be generated and displayed on the screen.
Configuration is done near the top of main.cpp
PRINT_TEXT
controls wether the text of the barcode is printed under it. Enabled by default. Comment to disable.DEBUG_GEN
controls wether extra debug tools are printed around the barcode. These include blocks at the top showing which bars go with which letters and a 1px dotted line at the bottom. Disabled by default. Uncomment to enable.BARCODE_TOP_BUFF
controls how many pixels of space to have above the barcode. Debug information (if present) goes in this space. Defaults to 0px when not debugging and 8px when debugging.BARCODE_BOTTOM_BUFF
controls how many pixels of space to have below the barcode. The printed text (if present) goes in this space. Defaults to 0px when not printing and 10px when printing.
src/main.cpp
contains the main Arduino source codesrc/barcode.h
contains the barcode encoding information for each charactercodes.csv
contains a version of the table from Wikipedia describing the encoding of each character.barcode.py
convertscodes.csv
intosrc/barcode.h
lib/
contains the Adafruit libraries required to compile the project
This project was set up using PlatformIO in VSCode
This project is licensed under the GNU General Public License v3.0. See LICENSE
for more information.
The Adafruit libraries were originally licensed under The MIT License. See lib/Adafruit*/LICENSE
for details.