An ESP32 little thing

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

afdf887bd533ca547f47b0af0c6a1e03.png

We can use ESP-IDF and Arduino two SDKs to develop ESP32S3

6a41e724263496373a67ba594cda4b15.png

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

4bb5ba79716a141f682878082f2db054.png

But we need to replace the contents of lib downloaded from Github into the library directory of Arduino

0806d73751bf99258a6e20a0d0dd874f.png

Ok, let's open a project, then compile and burn

110e652af0ce79b253dc529821787860.png

you can see the display

d1b636ba73a26bb23a5006605a31a008.jpeg

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"

0e1a480b65ec9f6ff0dee34810c47125.png

5b35ab0ac3c303ca1561e2e708f7a7a1.jpeg

b68a0d50b16ffe6074b78d4d268ae32f.jpeg

Guess you like

Origin blog.csdn.net/weiqifa0/article/details/129905433