树莓派Pico W的TFT显示与I2C总线项目实践
1. TFT显示项目
1.1 TFT位图显示项目
1.1.1 项目描述
此项目旨在创建小位图并将其显示在TFT显示屏上。具体创建了两种位图:心形和箭头形,在屏幕上显示6个这样的位图,且每个位图之间有间隔。
1.1.2 项目目标
展示如何在TFT显示屏上创建和显示小位图。
1.1.3 代码实现
#----------------------------------------------------------
#
DISPLAY BITMAP IMAGES
#
======================
#
# In this program heart images and arrow images are displayed
# across the TFT screen with 20 pixels space between each shape
#
# Author: Dogan Ibrahim
# File : bitmaps.py
# Date : October, 2022
#------------------------------------------------------------
from ST7735 import TFT
from sysfont import sysfont
from machine import SPI, Pin
#
# Initialize the SPI bus for the TFT
#
spi =
超级会员免费看
订阅专栏 解锁全文
1325

被折叠的 条评论
为什么被折叠?



