0

May 1, 2015 AT 2:43 pm

UPDATED: Thermal Printer Library for Arduino

printer

A recent refresh to the Adafruit_Thermal printer library for Arduino brings a few important tidbits:

  • It’s no longer dependent on SoftwareSerial (though it can still be used if desired). This brings compatibility with more and newer boards such as the Arduino Due that have multiple hardware serial interfaces but no SoftwareSerial support.
  • Adjustments have been made for the most recent printer firmware, so features like inverse printing and barcodes have returned.
  • Extended character support. The latest printers provide quite a few international character sets and symbols in the upper ASCII range (characters 0x80-0xFF).

Existing sketches will need just a few lines updated, it’s not quite a drop-in replacement. See the examples included with the library for an explanation. This was necessary for adding hardware serial support.

Download the latest from Github.

A more recent printer datasheet is also available now, which may be helpful for looking up international character “code pages” and char values.


Check out all the Circuit Playground Episodes! Our new kid’s show and subscribe!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!


Maker Business — Transforming Today’s Bad Jobs into Tomorrow’s Good Jobs

Wearables — Hot glue free zone

Electronics — Have you met Charlie?

Biohacking — Ticks are Spreading an Allergy to Meat

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.