Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Commit 4dfb70c

Browse files
committed
Update example and readme.
1 parent 645eddb commit 4dfb70c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Introduction
1212
:target: https://discord.gg/nBQh6qu
1313
:alt: Discord
1414
15-
TODO
15+
CircuitPython module for control of various small serial thermal printers.
1616

1717
Dependencies
1818
=============

examples/simpletest.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,17 @@
103103
# Back to normal / small size text.
104104
printer.set_size_small()
105105

106+
# Print center justified text.
107+
printer.justify_center()
108+
printer.print('Center justified!')
109+
110+
# Print right justified text.
111+
printer.justify_right()
112+
printer.print('Right justified!')
113+
114+
# Back to left justified / normal text.
115+
printer.justify_left()
116+
106117
# Print a UPC barcode.
107118
printer.print('UPCA barcode:')
108119
printer.print_barcode('123456789012', printer.UPC_A)

0 commit comments

Comments
 (0)