Difference between revisions of "ESP32-S3-Matrix"
From Waveshare Wiki
(→显示字符) |
(→随动游戏) |
||
Line 89: | Line 89: | ||
* After modification, [[#Upload Demo| upload the demo]] and use. | * After modification, [[#Upload Demo| upload the demo]] and use. | ||
− | == | + | == Dynamic Game == |
− | *[[# | + | *[[#Library installation | Install the corresponding library files]]. |
− | * | + | * Download [[#Demo| sample demo]], The example in the "Game" folder of the sample is a small game where a light bulb moves aligning with the tilt of ESP32-S3-Matrix. |
− | * [[# | + | *[[#Upload Demo|Uploading the demo]] and use it. |
− | * | + | *After successfully uploading the demo, a bead will be on neat the center position. |
− | * | + | *The lit bead will move according to the current tilt angle of the device. |
− | * | + | *The demo can be modified according to the requirement to achieve more complex operations. |
+ | |||
== 酷炫颜色 == | == 酷炫颜色 == | ||
*[[#库安装 | 安装相应库文件]] | *[[#库安装 | 安装相应库文件]] |
Revision as of 01:53, 17 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:
Display Characters
- Install Corresponding Library Files
- Download Sample Demo, the examples in the Font folder in the example are for mobile display characters.
- As shown below, 26 lowercase characters displayed as follows:
- The characters inside the quotation marks can be modified to display the corresponding characters on the ESP32-S3-Matrix.
- After modification, upload the demo and use.
Dynamic Game
- Install the corresponding library files.
- Download sample demo, The example in the "Game" folder of the sample is a small game where a light bulb moves aligning with the tilt of ESP32-S3-Matrix.
- Uploading the demo and use it.
- After successfully uploading the demo, a bead will be on neat the center position.
- The lit bead will move according to the current tilt angle of the device.
- The demo can be modified according to the requirement to achieve more complex operations.
酷炫颜色
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 上流动显示