Skip to content

Instantly share code, notes, and snippets.

@haswalt
haswalt / Display_ST7701.cpp
Created December 12, 2025 14:47 — forked from fallenartist/Display_ST7701.cpp
Waveshare ESP32-S3 Touch LCD 2.1 Example
#include "Display_ST7701.h"
spi_device_handle_t SPI_handle = NULL;
esp_lcd_panel_handle_t panel_handle = NULL;
void ST7701_WriteCommand(uint8_t cmd)
{
spi_transaction_t spi_tran = {
.cmd = 0,
.addr = cmd,
.length = 0,
@haswalt
haswalt / Display_ST7701.cpp
Created December 12, 2025 14:47 — forked from fallenartist/Display_ST7701.cpp
Waveshare ESP32-S3 Touch LCD 2.1 Example
#include "Display_ST7701.h"
spi_device_handle_t SPI_handle = NULL;
esp_lcd_panel_handle_t panel_handle = NULL;
void ST7701_WriteCommand(uint8_t cmd)
{
spi_transaction_t spi_tran = {
.cmd = 0,
.addr = cmd,
.length = 0,