I'm trying to get an LCD display (1602 via I2C from pi pico W) to work, and my code is as follows:
import busio
import time
from adafruit_character_lcd import character_lcd_i2c
i2c = busio.I2C(board.GP15, board.GP14)
lcd = character_lcd_i2c.Character_LCD_I2C(i2c, 16, 2, address=0x3f)
lcd.clear()
lcd.home()
lcd.backlight = True
lcd.message = "Hello, World!"
time.sleep(2)
But when I run it, the screen flashes on for a second and doesn't show any text before shutting off. The I2C interface works after i manually set the address so I have no idea why its not working. Any Ideas?