1. 理解MicroPython在ESP32上的应用 MicroPython是一种精简版的Python 3编程语言,专为微控制器设计。它允许用户以Python编程语言的简洁性和易读性来编写程序,从而控制各种硬件设备,如ESP32。 2. 了解ST7735显示屏的基本特性和接口 ST7735是一种TFT彩色液晶显示控制器/驱动器芯片,常用于驱动小尺寸、低功耗
五、ST7735代码使用 1.引入库以及一些初始化 代码如下(示例): frommachineimportSPI, Pin# 导入 SPI 和 Pin 类模块fromST7735importTFT, bitSwap, FontLib# 导入 TFT、bitSwap 和 FontLib 类模块importtime# 导入 time 模块importframebuf# 导入 framebuf 模块importrandom# 导入 random 模块USE_FRAME_BUFFER =T...
GuyCarver的ST7735.py的github网址是:github.com/GuyCarver/Mi此版本适用于micropython-esp32。 下载ST7735驱动库 如果从github上下载有困难,可以从下面的链接下载压缩文件MicroPython-ST7735-master.zip: 链接:pan.baidu.com/s/1Sy8jlU 提取码:jal8 解压之后将几个文件都用ampy或者Thonny传到ESP32上: 其中: ...
github地址: https://github.com/boochow/micropython-st7735 以zip方式下载解压后的内容如下, 取红框内容上传到开发板后即可显示图片 调整亮度代码 pwm = PWM(Pin(5)) # 设置PWM的频率和占空比 pwm.freq(1000) pwm.duty(512) # 背光的亮度,范围是0(关闭)到1023(最亮)...
MicroPython-ST7735 This is a modified version ofGuyCarver's ST7735.pyST7735 TFT LCD driver for MicroPython. A font file is necessary for displaying text (some font files are inGuyCarver's repo). Text nowrap option added(default: nowrap=False). ...
MicroPython-ST7735-ESP8266 This is a ESP8266 micropython display libraray for ST7735. It's a fork fromGuyCarver's ST7735.py. This fork added support for newer 0.9" 160x80 mini ST7735 SPI TFT with IPS wide angle view. Also support 128x128 1.44" and 128x160 1.8" ST7735 TFT. and ens...
1803 -- 3:54 App 6.esp32s3 micropython 驱动st7789彩屏显示 596 -- 1:33 App 解决1.8寸TFT屏幕显示花边问题 1333 -- 0:28 App 单片机模拟spi和硬件spi刷屏对比 tft st7735s 1.44寸 1057 -- 5:08 App java玩转树莓派_屏幕篇_ST7735 5595 3 9:31 App ESP8266(nodemcu)+TFT1.44(ST7735,128...
micropython-st7735-esp8266 Driver and examples to ST7735s display in ESP-8266-12E Micropython, originally written by @hosaka. PINOUT TFT DisplayEsp-8266 GND GND VCC VCC 3V CS D4 (GPIO2) D/C D2 (GPIO4) RST D1 (GPIO5) SDA D7 (GPIO13) SCL D5 (GPIO14) BLK VCC 3V Changelog: Fi...
#driver for Sainsmart 1.8" TFT display ST7735 #Translated by Guy Carver from the ST7735 sample code. #Modirfied for micropython-esp32 by boochow import machine import time from math import sqrt #TFTRotations and TFTRGB are bits to set # on MADCTL to control display rotation/color...
A simple menu library for Micropython. MicroPython 的简易菜单库 - micropython-easymenu/driver/st7735_spi.mpy at main · funnygeeker/micropython-easymenu