Skip to content

Commit 6279224

Browse files
committed
fix: SPI creation failed
Signed-off-by: lbuque <1102390310@qq.com>
1 parent 29d2264 commit 6279224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tft_config/t-display/tft_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import lcd
33

44
def config():
5-
hspi = SPI(2, baudrate=40000000, sck=Pin(18), mosi=Pin(19), miso=None)
5+
hspi = SPI(2, sck=Pin(18), mosi=Pin(19), miso=None)
66
panel = lcd.SPIPanel(spi=hspi, command=Pin(16), cs=Pin(5), pclk=60000000, width=135, height=240)
77
st = lcd.ST7789(panel, reset=Pin(23), backlight=Pin(4))
88
st.backlight_on()

0 commit comments

Comments
 (0)