edit folder and image
parent
c4320863b1
commit
a153d38272
Binary file not shown.
After Width: | Height: | Size: 160 KiB |
@ -0,0 +1,19 @@
|
|||||||
|
from PIL import Image
|
||||||
|
from escpos.printer import Usb
|
||||||
|
|
||||||
|
p = Usb(0x4b8, 0x0e03) #in_ep=0x82, out_ep=0x01)
|
||||||
|
|
||||||
|
p.textln("hello world")
|
||||||
|
|
||||||
|
p.text("hello ")
|
||||||
|
|
||||||
|
p.text("line!")
|
||||||
|
|
||||||
|
p.qr("https://chae0.org", size=16, center=True)
|
||||||
|
#always put p.ln() before printing an image like, p.image("")
|
||||||
|
|
||||||
|
p.ln()
|
||||||
|
|
||||||
|
p.image("images/final.png")
|
||||||
|
|
||||||
|
p.cut()
|
Loading…
Reference in New Issue