nathan7 / thermal

thermal printer driver (CSN-A2-T and compatibles)
4 stars 0 forks source link

Working? #1

Open zettam opened 9 years ago

zettam commented 9 years ago

Is this working? If so, how? Looking forward to find a working thermal printer lib for nodejs, that can also print images.

edef1c commented 9 years ago

It's working just fine — no image support though, only barcodes. I haven't quite figured out the protocol for images, it's a todo. I'm sorry for the lack of docs, but this should do as an example:

var thermal = require('thermal')('/dev/ttyUSB0')
thermal.write('Hello, world!\n\n\n')
zettam commented 9 years ago

my sparkfun printer isn't connected through usb (its serial) How can I make it work for that scenerio? I don't see any movement when I paste your code.

thanks.

zettam commented 9 years ago

Turning printer off and on helped! It works. Any ETA for image support?

edef1c commented 9 years ago

Not really — this is a project I haven't touched or used in a while, and while I had a look at implementing image support in August, I didn't get very far. I have no idea if I'll get to this any time soon — this is a hobby project after all, not my day job.

zettam commented 9 years ago

Okay I see - thank you anyway!

dgkanatsios commented 7 years ago

@edef1c I'd like to check if I can make image support working. Can you give a hint on where to get started?