This repository provides a tutorial to help you get an ESP32-S2 mini to communicate with a TFT ST7735S screen using MicroPython.
- Prerequisites
- Downloading the Required Drivers and Files
- Identifying the Default SPI Pins
- Wiring
- License
Before you start, ensure you have the following:
- ESP32-S2 mini
- TFT ST7735S screen
- MicroPython firmware installed on your ESP32-S2 mini
The following drivers and files are required for this tutorial:
ST7735.pygraphicstest.py
Visit the MicroPython ST7735 Repository to download these files.
sysfont.py
Visit the GuyCarver MicroPython Repository to download this file.
Visit the cheungbx/st7735-esp8266-micropython Repository to download this file.
Run the following command in the MicroPython REPL to find the SCK (Serial Clock) and SDA (Serial Data) MISO (Master In Slave Out) pins from the default values on ESP32-S2:
import machine
print(machine.SPI(1))The output should look similar to this: SPI(id=1, baudrate=500000, polarity=0, phase=0, bits=8, firstbit=0, sck=7, mosi=11, miso=9)
Here is a guide on how to wire your ESP32-S2 mini with the TFT ST7735S screen:
This project is licensed under the terms of the MIT license. For more information, refer to the LICENSE file.
