-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
Hi.
I'm simply trying to create a spinning line effect with these symbols: | / - \
I saw in the docs that it was a few exceptions
0x5C is a Yen symbol instead of backslash
This is the code I'm using:
# write a command to lcd
def lcd_write(self, cmd, mode=0):
self.lcd_write_four_bits(mode | (cmd & 0xF0))
self.lcd_write_four_bits(mode | ((cmd << 4) & 0xF0))
# put string function
def lcd_display_string(self, string, line):
if line == 1:
self.lcd_write(0x80)
if line == 2:
self.lcd_write(0xC0)
if line == 3:
self.lcd_write(0x94)
if line == 4:
self.lcd_write(0xD4)
for char in string:
self.lcd_write(ord(char), Rs)
string = "\\"
lcd.lcd_display_string(string, 1)
Are there any ways to print a backslash?
Metadata
Metadata
Assignees
Labels
No labels