Skip to content

Commit d766bb9

Browse files
committed
align rgb simpletest pins with learn guide fritzing
Also adds a .clear() to the test loop.
1 parent 375ce69 commit d766bb9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/charlcd_rgb_simpletest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
lcd_d4 = digitalio.DigitalInOut(board.D9)
1919
lcd_backlight = digitalio.DigitalInOut(board.D13)
2020
red = pulseio.PWMOut(board.D3)
21-
green = pulseio.PWMOut(board.D4)
22-
blue = pulseio.PWMOut(board.D5)
21+
green = pulseio.PWMOut(board.D5)
22+
blue = pulseio.PWMOut(board.D6)
2323

2424
# Init the LCD class
2525
lcd = adafruit_character_lcd.Character_LCD_RGB(lcd_rs, lcd_en, lcd_d4, lcd_d5,
@@ -33,6 +33,7 @@
3333

3434

3535
while True:
36+
lcd.clear()
3637
lcd.message('CircuitPython\nRGB Test')
3738
lcd.set_color(RED)
3839
time.sleep(1)

0 commit comments

Comments
 (0)