Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 8 additions & 2 deletions board_configs/busdisplay/i80/wt32sc01-plus/board_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))


Expand Down
Loading