620 views|2 replies

9

Posts

1

Resources
The OP
 

【Digi-Key Follow me Issue 2】Task 1: Control the screen to display Chinese [Copy link]

 

First of all, I am a student at Zhejiang Gongshang University. I saw Brother Long's video on B Station and was quite interested in it. After waiting for 2 months, the board finally arrived. I would like to thank the EEworld community and Digi-Key Electronics for giving me this opportunity. The board is really very beautiful and exquisite.

Task 1: Control the screen to display Chinese (mandatory task)
Complete the screen control and display Chinese
Matched device: Adafruit ESP32-S3 TFT Feather

Task 1 Preliminary preparations:

  1. Espressif Burning Tool
  2. Factory firmware Adafruit_Feather_ESP32S3_TFT_FactoryTest.bi
  3. CircuitPython Firmware
  4. IDE (I use Thonny)
  5. Font Files

Here are the specific steps:

  1. Connect the board to the computer. When you connect the board for the first time, the original interface will be displayed, which contains information such as battery voltage and power.
  2. Next, press the ret button twice to enter DFU state

  3. Then a USB drive named FTHRS3BOOT will pop up on the computer.
  4. Drag the pre-downloaded circuitpython firmware into the USB drive. As long as the file is copied, the burning is successful. No other software or other operations are required. It is more convenient than other boards I have played with.
  5. Because we need to display Chinese, we need to call two library files, adafruit_display_text and adafruit_bitmap_font, drag them to the lib folder under FTHRS3BOOT
  6. Next, create a new folder in FTHRS3BOOT, name it fonts, drag the downloaded font file into it, pay attention to the size, and do not use fonts that take up too much space.
  7. The next step is to write the program. The program is very simple, but the challenging part is to adjust it slowly, such as font, position, color, etc., to achieve the best effect.
    import board
    from adafruit_display_text import bitmap_label        //导入库文件
    import terminalio
    from adafruit_bitmap_font import bitmap_font
    
    font = bitmap_font.load_font("fonts\wenquanyi_10pt.pcf")//定义字体
    color = 0x11ff11//定义颜色
    
    text2 = "浙江工商大学"//文本内容
    scale = 2//定义字体大小
    
    text_area2 = bitmap_label.Label(font,text=text2,scale=scale)
    text_area2.x = 10//控制文本的位置
    text_area2.y = 30
    board.DISPLAY.show(text_area2)
    
    while True:
     pass
    

The following are the files used

adafruit-circuitpython-adafruit_feather_esp32s3_tft-en_US-8.2.3.uf2 (2.68 MB, downloads: 1)
Adafruit_Feather_ESP32S3_TFT_FactoryTest.uf2 (638.5 KB, downloads: 0)
wenquanyi_10pt.pcf (2.18 MB, downloads: 4)
thonny-4.1.1.exe (20.85 MB, downloads: 0)
flash_download_tool_3.9.5_0.zip (19.62 MB, downloads: 0)
This post is from DigiKey Technology Zone

Latest reply

It is indeed difficult to choose the font. Too small is hard to read, too large is too big to download.  Details Published on 2023-10-20 09:22
 
 

6570

Posts

0

Resources
2
 

Drag the downloaded font file in, pay attention to the size, don't use a font that takes up too much space, okay.

This post is from DigiKey Technology Zone
 
 
 

6822

Posts

11

Resources
3
 
It is indeed difficult to choose the font. Too small is hard to read, too large is too big to download.
This post is from DigiKey Technology Zone
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
The Surrender of Bandits at Birdcage Mountain

Hu Ge's new work http://www.6rooms.com/nlsdwatch.php?v=2755 is really funny. Hu Ge almost went bankrupt to make this fil ...

Television standards around the world

In PDF format

【Project source code】 Analysis of blocking assignment and non-blocking assignment principles

This article and design code were written by FPGA enthusiast Xiao Meige. Without the author's permission, this article i ...

Does the reverse gate-source voltage of an enhanced NMOS have an effect on the drain-source leakage current?

As the title says, for MOS tube datasheets, there is usually a range of drain-source current at a specific Vds and tem ...

35 "Ten Thousand Miles" Raspberry Pi Car——ROS Learning (Realizing Hello World)

The best way to learn ROS is to use it. The ROS official website has a Chinese version of the tutorial . After install ...

[HPM-DIY] HPM SDK updated to 0.13 SD card reading and writing performance greatly improved

In this post https://en.eeworld.com/bbs/thread-1212378-1-1.html , the overall refresh frame rate is limited to about 20 ...

Learn to make and use Tina's Docker image compilation from scratch

This post was last edited by walker2048 on 2022-8-28 10:43 ### Foreword This is the first time that a novice player has ...

Is there any specific difference between AD and cadence which both are using?

On this wire pulling tool, AD was acquired by Japan. Turn to cadence 790682 790683

Real-time simulation application of six-phase permanent magnet synchronous motor

In the field of AC electrical transmission, three-phase motors and their speed control systems are widely used. The incr ...

PFC voltage and current digital compensator

Hello everyone, I have been studying the digital implementation of PFC recently. After reading some documents, I don’t ...

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list