I sent ESP8266 before, and some people commented that I would play ESP32
Then I bought a few back, of course, I also want to play with everyone
Introduce this development board
Development board Github project link
https://github.com/Xinyuan-LilyGO/T-QT
Download the code of the warehouse to the local
We can use ESP-IDF and Arduino two SDKs to develop ESP32S3
ESP-IDF runs to FreeRtos, which is more suitable for embedded pairing, and Arduino is more like a toy.
Both ESP-IDF and Arduino are tools for developing ESP32, and they each have advantages and disadvantages.
ESP-IDF:
advantage:
- It is the official development framework of ESP32, which provides more low-level control and flexibility, and is suitable for projects that require high customization.
- Provides more comprehensive documentation and examples.
- Support FreeRTOS, can realize multitasking and multithreading.
shortcoming:
- Using ESP-IDF requires more programming knowledge and experience.
- The development process may require more configuration and debugging.
Arduino:
advantage:
- For beginners, Arduino is easier to use, with a more user-friendly interface and simpler API.
- There are tons of libraries and examples available for Arduino which can drastically reduce development time.
- The Arduino development environment is very mature and can run on a variety of operating systems.
shortcoming:
- Arduino has limited flexibility and may have limitations for projects that require more advanced control.
- Due to the use of more advanced APIs and libraries, Arduino may use more resources such as memory and processor time.
Therefore, the choice between using ESP-IDF or Arduino depends on individual needs and project requirements.
How to install the ESP-IDF environment?
Just follow the official one.
https://docs.espressif.com/projects/esp-idf/zh_CN/stable/esp32s3/get-started/linux-macos-setup.html
mkdir -p ~/esp
cd ~/esp
git clone -b v5.0.1 --recursive https://github.com/espressif/esp-idf.git
cd ~/esp/esp-idf
./install.sh esp32s3
I recorded the operation instructions that are often encountered in the process
. $HOME/esp/esp-idf/export.sh //设置环境变量
idf.py set-target esp32s3 //设置编译芯片
idf.py menuconfig //配置
idf.py build //编译
idf.py -p PORT [-b BAUD] flash //多分区完整烧录
idf.py app //编译应用app
idf.py app-flash //烧录应用app
cp -r $IDF_PATH/examples/get-started/hello_world . //拷贝参考实例到当前目录
git submodule update --init --recursiv //更新模块仓库
Install Arduino
Download and install directly from the official website
https://www.arduino.cc/en/software/
This is how Arduino manages libraries
But we need to replace the contents of lib downloaded from Github into the library directory of Arduino
Ok, let's open a project, then compile and burn
you can see the display
Brothers who like this little thing can go to the shopping cart to place an order
Today is the weekend, so I have time to answer your questions and deliver the goods to you.
"Long press to identify"