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 5bc8ec5 commit 7ef2cc6Copy full SHA for 7ef2cc6
adafruit_character_lcd/character_lcd.py
@@ -356,8 +356,10 @@ def message(self, message):
356
# If cursor_position is set then starts at the specified location for
357
# LEFT_TO_RIGHT. If RIGHT_TO_LEFT cursor_position is determined from right.
358
# allows for cursor_position to work in RIGHT_TO_LEFT mode
359
- col = self.column if self.displaymode & _LCD_ENTRYLEFT > 0
360
- else self.columns - 1 - self.column
+ if self.displaymode & _LCD_ENTRYLEFT > 0:
+ col = self.column
361
+ else:
362
+ col = self.columns - 1 - self.column
363
self.cursor_position(col, line)
364
initial_character += 1
365
# If character is \n, go to next line
0 commit comments