Micropython学习交流群 学习QQ群:786510434 提供多种固件下载和学习交流。
Micropython-扇贝物联 QQ群:31324057 扇贝物联是一个让你与智能设备沟通更方便的物联网云平台
Micropython学习交流群 学习QQ群:468985481 学习交流ESP8266、ESP32、ESP8285、wifi模块开发交流、物联网。
Micropython老哥俩的IT农场分享QQ群:929132891 为喜欢科创制作的小白们分享一些自制的计算机软硬件免费公益课程,由两位多年从事IT研发的中年大叔发起。
micropython esp32s3 ili9488电容触摸屏
接线表:
# dc 37
# sck 36
# mosi 35
# led 7
# rst 5
# cs 4
"""ILI9488 demo (fonts).""" from time import sleep from ili9488 import Display, color565 from machine import Pin, SPI from xglcd_font import XglcdFont import random # dc 37 # sck 36 # mosi 35 # led 7 # rst 5 # cs 4 def test(): """Test code.""" # Baud rate of 60000000 seems about the max spi = SPI(2, baudrate=60000000, sck=Pin(36), mosi=Pin(35)) display = Display(spi, dc=Pin(37), cs=Pin(4), rst=Pin(5),width = 480, height = 320) print('Loading fonts...') print('Loading arcadepix') arcadepix = XglcdFont('fonts/ArcadePix9x11.c', 9, 11) print('Loading bally') bally = XglcdFont('fonts/Bally7x9.c', 7, 9) for i in range(0,60): display.draw_text(random.randint(0,320), random.randint(0,480), 'This''s a small test!', arcadepix, color565(random.randint(0,255), random.randint(0,255), random.randint(0,255))) display.draw_text(random.randint(0,320), random.randint(0,480), 'Bally 7x9', bally, color565(random.randint(0,255), random.randint(0,255), random.randint(0,255))) #for i in range(480): # display.draw_pixel(160, i, color565(255, 0, 0)) test()
[MicroPython Ports] 的 ILI9488 TFT 驱动程序
https://github.com/QiaoTuCodes/MicroPython-_ILI9488
Copyright © 2014 ESP56.com All Rights Reserved
执行时间: 0.0072422027587891 seconds