使用  CircuitPython displayio driver 驱动GC9A01 圆形 LCD

Adafruit CircuitPython相关
MicroPython重要分支
回复
头像
shaoziyang
帖子: 3917
注册时间: 2019年 10月 21日 13:48

使用  CircuitPython displayio driver 驱动GC9A01 圆形 LCD

#1

帖子 shaoziyang »

使用  CircuitPython displayio driver 驱动GC9A01 圆形 LCD 的 demo。

图片

使用方法

代码: 全选

import board
import displayio
import gc9a01
# Raspberry Pi Pico pinout, one possibility, at "southwest" of board
tft_clk = board.GP10 # must be a SPI CLK
tft_mosi= board.GP11 # must be a SPI TX
tft_rst = board.GP12
tft_dc = board.GP13
tft_cs = board.GP14
tft_bl = board.GP15
spi = busio.SPI(clock=tft_clk, MOSI=tft_mosi)
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs, reset=tft_rst)
display = gc9a01.GC9A01(display_bus, width=240, height=240, backlight_pin=tft_bl)
https://github.com/todbot/CircuitPython_GC9A01_demos
 

头像
shaoziyang
帖子: 3917
注册时间: 2019年 10月 21日 13:48

Re: 使用  CircuitPython displayio driver 驱动GC9A01 圆形 LCD

#2

帖子 shaoziyang »

图片
 

回复

  • 随机主题
    回复总数
    阅读次数
    最新文章