Skip to content

Commit 745cebc

Browse files
authored
Merge pull request #100 from SummerGGift/fix_lcd
【修改】lcd 例程中的错误代码
2 parents 994fdc4 + d566d30 commit 745cebc

File tree

1 file changed

+1
-1
lines changed
  • examples/stm32l4_pandora

1 file changed

+1
-1
lines changed

examples/stm32l4_pandora/lcd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
lcd = LCD() # Create a LCD object
1414
lcd.light(False) # Close the backlight
1515
lcd.light(True) # Open the backlight
16-
lcd.set_color(WHITE, BLACK) # Set background color and foreground color
16+
lcd.set_color(lcd.WHITE, lcd.BLACK) # Set background color and foreground color
1717
lcd.fill(lcd.BLACK) # Fill the entire LCD with black
1818
lcd.fill(lcd.RED) # Fill the entire LCD with red
1919
lcd.fill(lcd.GRAY) # Fill the entire LCD with gray

0 commit comments

Comments
 (0)