Explorar el Código

Merge pull request #100 from SummerGGift/fix_lcd

【修改】lcd 例程中的错误代码
朱天龙 (Armink) hace 6 años
padre
commit
745cebc0b6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      examples/stm32l4_pandora/lcd.py

+ 1 - 1
examples/stm32l4_pandora/lcd.py

@@ -13,7 +13,7 @@ from machine import LCD     # Import the LCD class from machine
 lcd = LCD()                             # Create a LCD object
 lcd.light(False)                        # Close the backlight
 lcd.light(True)                         # Open the backlight
-lcd.set_color(WHITE, BLACK)             # Set background color and foreground color
+lcd.set_color(lcd.WHITE, lcd.BLACK)     # Set background color and foreground color
 lcd.fill(lcd.BLACK)                     # Fill the entire LCD with black
 lcd.fill(lcd.RED)                       # Fill the entire LCD with red
 lcd.fill(lcd.GRAY)                      # Fill the entire LCD with gray