Code Monkey home page Code Monkey logo

epaperbarcode's Introduction

EPaper Barcodes

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

A barcode on a display

Usage

Simply send a string of < 17 characters over serial at 115200 baud, and a barcode will be generated and displayed on the screen.

Configuration

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.

Files

  • src/main.cpp contains the main Arduino source code
  • src/barcode.h contains the barcode encoding information for each character
  • codes.csv contains a version of the table from Wikipedia describing the encoding of each character.
  • barcode.py converts codes.csv into src/barcode.h
  • lib/ contains the Adafruit libraries required to compile the project

This project was set up using PlatformIO in VSCode

License

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.

epaperbarcode's People

Contributors

benjamin-c avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.