Support for the A2 micro panel thermal printer with Tessel.
This module is based on xseignard's thermalprinter package
Important Information Specific to Module
- Needs a seperate 5v - 9V, 2A power supply. The Tessel can't power this. 9V is faster.
- You can do a test print by holding the printer button while powering.
Installation
npm install tessel-thermalprinter
- A, B, D ports only. C doesn't support UART yet.
Examples
var tessel = require('tessel'); var thermalprinter = require('tessel-thermalprinter'); var printer = thermalprinter.use(tessel.port['A']); printer.on('ready', function(){ console.info('Printer ready!'); printer .center() .horizontalLine(16) .printLine("we're printing with") .inverse(true) .big(true) .printLine(' TESSEL! ') .lineFeed(3) .print(function(){ console.info('Printer finished!'); process.exit(); }); });
Thanks to Xavier Seignard.
Comments