Skip to content

Commit fc7adc2

Browse files
committed
Update printertest.py to showcase image justification
1 parent 4046457 commit fc7adc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

printertest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@
5959

6060
# Print the 135x135 pixel QR code in adaqrcode.py
6161
import gfx.adaqrcode as adaqrcode
62+
printer.justify('C')
6263
printer.printBitmap(adaqrcode.width, adaqrcode.height, adaqrcode.data)
6364
printer.println("Adafruit!")
65+
printer.justify('L')
6466
printer.feed(2)
6567

6668
printer.sleep() # Tell printer to sleep

0 commit comments

Comments
 (0)