Difference between revisions of "ESP32-S3-Matrix"
From Waveshare Wiki
(→显示字符) |
|||
Line 82: | Line 82: | ||
== 显示字符 == | == 显示字符 == | ||
− | *[[# | + | *[[#Library Installation| Install Corresponding Library Files]] |
− | * | + | * Download [[#Demo| Sample Demo]], 示例中的 Font 文件夹下的示例为流动显示字符 |
* 如下,当前为显示 26 个小写字符 | * 如下,当前为显示 26 个小写字符 | ||
[[File:ESP32-S3 TO Arduino sample1 1.png]] | [[File:ESP32-S3 TO Arduino sample1 1.png]] |
Revision as of 10:38, 16 April 2024
| ||
Overview
Introduction
Features
Function Block
Onboard Resources
Pinout Definition
Dimensions
Working with ESP32
Working with Arduino
Environment Set-up
- Install Arduino IDE.
- Enter Arduino IDE after installation.
- Go to the board manager, search for esp32, select the latest version of esp32 by Espressif Systems at the bottom, and click install (if it doesn't install correctly, you can try using a phone hotspot).
- Restart the Arduino IDE after installation, and then you can use it.
If the installation fails
- Failed to install 2.0.11 version:
- Download the resource file:
- Click on the path "c:\Users\Waveshare\AppData\Local\Arduino15\packages" (where Waveshare is the user name of the computer, and you need to turn on Show Hidden Files).
- Unzip the downloaded files to the packages file folder:
- Install it again:
- Restart the Arduino IDE after installation and you're ready to go!
Run Example
Create Example
- Above, change the project folder to c:\Users\Waveshare\AppData\Local\Arduino15\packages (where Waveshare is the computer username).
- Restart Arduino IDE.
- Demos can be created from the examples in the Project folder under Files.
- The following is the RGB flashing example (File -> Sketchbook -> esp32 -> hardware -> esp32 -> 2.0.11 -> libraries -> ESP32 -> examples -> BlinkRGB under GPIO).
Upload Demo
- Select the development board and port.
- Search esp32s3, select ESP32S3 Dev Module, and the ports to download.
- After selecting, click to upload and Arduino IDE will start to compile and program the demo.
- After uploading, you can see the effect on the development board.
Examples
The following demonstrates device control on the Arduino IDE
Library Installation
- Install Adafruit NeoPixel library:
- Install Adafruit NeoMatrix library:
- Install ALL:
- Install Adafruit GFX Library:
- Install ALL:
- Install FastLED library:
- Install SensorLib library for QMI8658:
显示字符
- Install Corresponding Library Files
- Download Sample Demo, 示例中的 Font 文件夹下的示例为流动显示字符
- 如下,当前为显示 26 个小写字符
- 可通过修改引号内的字符以在 ESP32-S3-Matrix 上显示相应字符
- 修改后 烧录程序 即可使用
随动游戏
- 安装相应库文件
- 下载 示例程序,示例中的 Game 文件夹下的示例为一个灯珠随 ESP32-S3-Matrix 倾斜跟随移动的小游戏
- 烧录程序 即可使用
- 成功烧录程序后,将在靠近中心位置点亮一个灯珠
- 亮灯会根据设备当前倾斜角度进行移动
- 可根据需求修改程序以实现更复杂的操作
酷炫颜色
Web 页面控制
- 安装相应库文件
- 下载 示例程序,示例中的 HTTP 文件夹下的示例为通过 Web 页操作 ESP32-S3-Matrix 进行显示
- 烧录程序 即可使用,程序烧录成功后可按下方操作进行
- 控制设备(手机、电脑等)连接名为 ESP32-S3-Matrix 的WIFI
- 成功连接 WIFI 后,在浏览器中搜索 10.10.10.1 可进入 ESP32-S3-Matrix 控制页面
10.10.10.1
- Web 页面存在两个控制 ESP32-S3-Matrix 全局刷新按钮,以及一个文本框和提交按钮
- 在文本框中输入字符,然后点击 Submit 按钮,文本框中的字符将在 ESP32-S3-Matrix 上流动显示