This repository was archived by the owner on May 16, 2023. It is now read-only.
File tree 2 files changed +2
-5
lines changed 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,6 @@ Please ensure all dependencies are available on the CircuitPython filesystem.
26
26
This is easily achieved by downloading
27
27
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle >`_.
28
28
29
- **NOTE: ** This library is not supported for smaller non-Express boards like
30
- the Trinket M0, Gemma M0, etc.
31
-
32
29
Installing from PyPI
33
30
====================
34
31
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ def _write_char(self, char):
202
202
if char == '\r ' :
203
203
return # Strip carriage returns by skipping them.
204
204
self ._wait_timeout ()
205
- self ._uart .write (char . encode ( 'ascii' ))
205
+ self ._uart .write (bytes ( char , 'ascii' ))
206
206
delay = self ._byte_delay_s
207
207
# Add extra delay for newlines or moving past the last column.
208
208
if char == '\n ' or self ._column == self ._max_column :
@@ -238,7 +238,7 @@ def _unset_print_mode(self, mask):
238
238
239
239
def send_command (self , command ):
240
240
"""Send a command string to the printer."""
241
- self ._uart .write (command . encode ( 'ascii' ))
241
+ self ._uart .write (bytes ( command , 'ascii' ))
242
242
243
243
# Do initialization in warm_up instead of the initializer because this
244
244
# initialization takes a long time (5 seconds) and shouldn't happen during
You can’t perform that action at this time.
0 commit comments