We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4944b8f commit 4a4ecfcCopy full SHA for 4a4ecfc
lcd/lcd_api.py
@@ -134,15 +134,15 @@ def putchar(self, char):
134
"""Writes the indicated character to the LCD at the current cursor
135
position, and advances the cursor by one position.
136
"""
137
+ if char != '\n':
138
+ self.hal_write_data(ord(char))
139
+ self.cursor_x += 1
140
if self.cursor_x >= self.num_columns or char == '\n':
141
self.cursor_x = 0
142
self.cursor_y += 1
143
if self.cursor_y >= self.num_lines:
144
self.cursor_y = 0
145
self.move_to(self.cursor_x, self.cursor_y)
- if char != '\n':
- self.hal_write_data(ord(char))
- self.cursor_x += 1
146
147
def putstr(self, string):
148
"""Write the indicated string to the LCD at the current cursor
0 commit comments