Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Micropython ST7735S Tutorial

This repository provides a tutorial to help you get an ESP32-S2 mini to communicate with a TFT ST7735S screen using MicroPython.

Table of Contents

Prerequisites

Before you start, ensure you have the following:

  • ESP32-S2 mini
  • TFT ST7735S screen
  • MicroPython firmware installed on your ESP32-S2 mini

Downloading the Required Drivers and Files

The following drivers and files are required for this tutorial:

From the MicroPython ST7735 repository:

  1. ST7735.py
  2. graphicstest.py

Visit the MicroPython ST7735 Repository to download these files.

From the GuyCarver MicroPython repository:

  1. sysfont.py

Visit the GuyCarver MicroPython Repository to download this file. Visit the cheungbx/st7735-esp8266-micropython Repository to download this file.

Identifying the Default SPI Pins

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)

Wiring

Here is a guide on how to wire your ESP32-S2 mini with the TFT ST7735S screen:

ESP32-S2 to TFT ST7735S Wiring Diagram

License

This project is licensed under the terms of the MIT license. For more information, refer to the LICENSE file.

About

Tutorial to get ESP32-S2 mini to talk to a TFT ST7735S screen

Topics

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages