diff --git a/board_configs/busdisplay/i80/ili9341_i80_rp2040/board_config.py b/board_configs/busdisplay/i80/ili9341_i80_rp2040/board_config.py index e5eea308..4b9110cc 100644 --- a/board_configs/busdisplay/i80/ili9341_i80_rp2040/board_config.py +++ b/board_configs/busdisplay/i80/ili9341_i80_rp2040/board_config.py @@ -34,7 +34,7 @@ power_pin=None, power_on_high=True, ) -i2c = I2C(0, sda=Pin(16), scl=Pin(17), frequency=100_000) +i2c = I2C(0, sda=Pin(16), scl=Pin(17), freq=100_000) touch = FT6x36(i2c) touch_rotation_table = None diff --git a/board_configs/busdisplay/i80/wt32sc01-plus/board_config.py b/board_configs/busdisplay/i80/wt32sc01-plus/board_config.py index fce80bdb..187b615c 100644 --- a/board_configs/busdisplay/i80/wt32sc01-plus/board_config.py +++ b/board_configs/busdisplay/i80/wt32sc01-plus/board_config.py @@ -13,11 +13,17 @@ # ST7796(reset=4) reset = Pin(4, Pin.OUT, value=1) +# Pins from the board's datasheet (Panlee ZX3D50CE02S-USRC-4832, Tab. 5). The +# LCD has no chip-select line; GPIO 6 is the touch controller's SDA. display_bus = I80Bus( command=0, - chip_select=6, + chip_select=None, write=47, data_pins=[9, 46, 3, 8, 18, 17, 16, 15], + # 15 MHz, the ST7796's rated write cycle (66 ns). Proven on the glass + # 2026-10-05: at the bus's 30 MHz default the panel showed noise, and at + # 20 MHz LVGL's updates landed on the wrong rows. + frequency=15_000_000, ) display_drv = ST7796( @@ -40,7 +46,7 @@ power_pin=None, power_on_high=True, ) -i2c = I2C(0, sda=Pin(6), scl=Pin(5), frequency=100_000) +i2c = I2C(0, sda=Pin(6), scl=Pin(5), freq=100_000) touch = FT6x36(i2c) touch_rotation_table = None diff --git a/board_configs/busdisplay/i80/wt32sc01-plus/board_peripherals.py b/board_configs/busdisplay/i80/wt32sc01-plus/board_peripherals.py index 4b40c246..976e70f5 100644 --- a/board_configs/busdisplay/i80/wt32sc01-plus/board_peripherals.py +++ b/board_configs/busdisplay/i80/wt32sc01-plus/board_peripherals.py @@ -10,12 +10,12 @@ def load_peripherals(ns): def sdcard(): - """SPI microSD when present (CS=GPIO41 common on WT32-SC01 Plus).""" + """The microSD slot over SPI (datasheet Tab. 4: CS 41, MOSI 40, CLK 39, MISO 38).""" from machine import Pin, SoftSPI from sdcard import SDCard - spi = SoftSPI(baudrate=1_000_000, sck=Pin(12), mosi=Pin(11), miso=Pin(13)) + spi = SoftSPI(baudrate=1_000_000, sck=Pin(39), mosi=Pin(40), miso=Pin(38)) return SDCard(spi, Pin(41, Pin.OUT, value=1))