With the aid of VScode and PlatformIO we can create and edit ESP32 projects to improve the efficiency quite a lot. It includes:Code highlight.Find the reference function with right click on it.Build c...
In order to make a pause or wait for the task in Arduino, the most widely used function is delay(), but sometimes it was cause some problem, in this article it will discuss it, and shows how to use fu...
To output data from an ESP32 using serial communication, you can use the ArduinoJson library to encode the data into a JSON string. The following is an example code to output an integer value from the...
Hardware connectionOn the ESP32 microcontroller, there are several pairs of GPIO pins that can be used for I2C communication. The default I2C pins on the ESP32 are GPIO 21 (SDA) and GPIO 22 (SCL), but...
Hardware protalThe ESP32 microcontroller has two hardware SPI (Serial Peripheral Interface) controllers, which means it can communicate with up to two SPI devices simultaneously. Each SPI controller h...