Example Code for Arduino - Getting Started
The article provides a step-by-step guide for first-time users of the ESP32 development board, detailing how to configure Arduino IDE, select the appropriate board settings, and execute a simple LED blinking program.
Arduino IDE Configuration
Please pay attention to the followings when using FireBeetle 2 ESP32-S3 for the first time.
-
Add the json link in the IDE
-
Download the core of the MCU
-
Select the development board and serial port
-
Open the sample code and burn it into the board
-
Get to know the serial monitor
Arduino IDE compiler environment config
-
Open Arduino IDE and click File->Preferences, as shown below.

-
In the newly opened interface, click the button in the red circle as shown below.

-
Copy the following link into the new pop-up dialog box: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Note: If you have installed another environment before, you can press Enter key at the beginning or end of the previous link and paste the link at a new line.

-
Click OK. Update the board. Open Tools->Board:->Boards Manager... as shown below:

-
Boards Manager will automatically update the boards as shown below:

-
After completing the update, you can enter esp32 at the top, select esp32 and click install when the following occurs (It's recommended to install the latest version):

-
Wait for the end of the following progress bar:

-
After completing the installation, the list will show that the esp32 has been installed, as shown below:

Select Development Board
-
Click Tools->Board, select DFRobot FireBeetle 2 ESP32-S3.

-
The development board needs to be set before burning the code:
-
USB CDC On Boot:
-
Enabled: Print serial port data through the USB interface
-
Disabled: Print serial port data through TX and RX
-
-
Partition Scheme: Disk partitioning scheme. Please select the appropriate storage space according to the Flash of the development board.
-
Port: Development board port (Just make sure the COM number is correct, which has nothing to do with the subsequent chip model.)

Sample Code
The default pin for the onboard LED is pin 12.
int led = 3;
void setup() {
pinMode(led,OUTPUT);
}
void loop() {
digitalWrite(led,HIGH);
delay(1000);
digitalWrite(led,LOW);
delay(1000);
}
-
Copy the codes above to the code editing box.
-
Click the arrow to complile the program and burn it into your development board.
Result

The image above shows that your codes have been successfully loaded into the board. Then, the onboard LED will start blinking.
Was this article helpful?
