verschwoerhaus wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
kassendrucker [2017-09-30 15:58]
maximilian_richt
kassendrucker [2017-12-05 13:14]
stefan_kaufmann [IBM 4610 TF6]
Line 5: Line 5:
  
 Ansteuerung:​ Seriell 19200/8/N/1 Ansteuerung:​ Seriell 19200/8/N/1
 +Idealerweise mit USB-Seriell-Wandler (mit Sub-D-Stecker). Softwareseitig z.B. mit [[https://​github.com/​python-escpos/​python-escpos|python-escpos]]:​
  
 +<​code>​
 +import sys
 +from escpos.printer import *
 +from escpos.constants import *
 +
 +p = Serial('/​dev/​ttyUSB0',​ 19200)
 +
 +p.image("​logo.gif",​ '​false',​ '​false',​ '​bitImageColumn',​ 20000000)
 +
 +p.charcode(code='​MULTILINGUAL'​)
 +p.set(align="​center",​ height=2, width=2, font='​a'​)
 +p.text("​Idee-O-Mat\n\n"​)
 +p.set(align="​left",​ text_type=''​)
 +for line in sys.stdin.readlines():​
 +  p.text(line)
 +p.set()
 +p.barcode('​1324354657687',​ '​EAN13',​ 64, 2, '',​ ''​)
 +p.cut()
 +</​code>​
 ===== Epson ????? ===== ===== Epson ????? =====
 FIXME FIXME
  
 {{tag>​projekt}} {{tag>​projekt}}