ESP32-H2-DevKitM-1-N4/CircuitPython display on WaveShare 3.5 inch ST7796S SPI LCD
ESP32-H2-DevKitM-1-N4 /CircuitPython display on WaveShare 3.5 inch ST7796S SPI LCD . cpyH2_ST7796.py, color test and simple text. """ ESP32-H2-DevKitM-1-N4/CircuitPython display on WaveShare 3.5 inch ST7796S SPI LCD Connection: VCC 3.3V 3V3 No Connection GND GND MISO IO3 MOSI IO5 SCLK IO4 SD_CS IO2 LCD_CS IO1 LCD_DC IO0 LCD_RST IO10 LCD_BL IO11 TP_SDA TP_SCL TP_INT TP_RST """ import os, sys import time import board import displayio import busio import fourwire import busdisplay from adafruit_display_text import label import terminalio spi_mosi = board.IO5 spi_sclk = board.IO4 sd_cs = board.IO2 lcd_cs = board.IO1 lcd_dc = board.IO0 lcd_rst = board.IO10 lcd_bl = board.IO11 DISPLAY_width = 480 DISPLAY_height = 320 ST7796_INIT_SEQUENCE = ( b"\x01\x80\x96" # _SWRESET and Delay 150ms b"\x11\x80\x78" # SLPOUT b"\x36\x01\x48" # b"\x36\x01\x08" # MADCTL ...