You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just tried your Micropython firmware 'ESP32_GENERIC_S3_SPIRAM_OCT_16MiB' with the Sunton 1732S019 board and it instant worked. Very nice!
Maybe you like to add this config to your examples.
tft_config.py
""" SUNTON 1732S070 ESP32S3 170x320 ST7789 display """frommachineimportPin, freqimports3lcdBL=Pin(14, Pin.OUT)
TFA=0BFA=0WIDE=1TALL=0freq(240_000_000)
defconfig(rotation=0, options=0):
"""Configure the display and return an ESPLCD instance."""BL.value(1)
bus=s3lcd.SPI_BUS(
2, mosi=13, sck=12, dc=11, cs=10, pclk=50000000, swap_color_bytes=True
)
returns3lcd.ESPLCD(
bus,
170,
320,
inversion_mode=True,
color_space=s3lcd.RGB,
reset=1,
rotation=rotation,
dma_rows=32,
options=options,
)
defdeinit(tft, display_off=False):
"""Take an ESPLCD instance and Deinitialize the display."""tft.deinit()
ifdisplay_off:
BL.value(0)
tft_buttons.py
since this board has no inbuild buttons, but a lot free GPIOs, here only the definition I used for the pinball example:
# use GPIO 21 and 20 for left and right button, just as examplefrommachineimportPinclassButtons:
def__init__(self):
self.name="1732S019"self.left=Pin(21, Pin.IN, Pin.PULL_UP)
self.right=Pin(20, Pin.IN, Pin.PULL_UP)
self.hyper=0self.thrust=0self.fire=0
The text was updated successfully, but these errors were encountered:
Just tried your Micropython firmware 'ESP32_GENERIC_S3_SPIRAM_OCT_16MiB' with the Sunton 1732S019 board and it instant worked. Very nice!
Maybe you like to add this config to your examples.
tft_config.py
tft_buttons.py
since this board has no inbuild buttons, but a lot free GPIOs, here only the definition I used for the pinball example:
The text was updated successfully, but these errors were encountered: