Code Monkey home page Code Monkey logo

adafruit-thermal-printer-driver's Introduction

Driver for the Adafruit thermal printers

Installing

make
sudo make install

You need a C++17 compiler and I've only tested this on ubuntu 18.04 so far.

Features

I implemented a number of features for dealing with the realities of roll media, whether you want to print out a paginated document or make use of the roll-like nature of the roll:

  • Several predefined virtual page lengths (50, 100, 200mm)
  • Custom page lengths
  • Optional marking of page boundaries
  • Optional remval of whitespace at beginning and end of page
  • Option to not eject the job after it's finished

In addition:

  • Plain text filter (print text using the printer's text mode)
  • Detection of paper out/door open

And the flagship feature:

  • Enhanced resolution mode which uses the printer's ability to vary the power draw in order to get a bit of greyscale output to improve the image quality at the expense of much slower printouts

About the printer

I've tested with this model. It's stringly inspired by the the Adafruit ZJ-58 driver. It uses the Epson ESC/POS command set with some extensions.

Documentation

It was quite an adventure writing this code. If you want to know how it works and why I did the things I did, then read the series of blog posts starting here.

adafruit-thermal-printer-driver's People

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.