Example Code for Arduino-Digital Port
Last revision 2025/12/27
The article is a guide to programming Arduino's digital port using FireBeetle 2 ESP32-E, including hardware setup, sample Blink code, and LED blinking results.
Hardware Preparation
- FireBeetle 2 ESP32-E IoT Microcontroller (SKU: DFR0654) ×1
- Terminal Block Board for FireBeetle 2 ESP32-E(SKU: DFR0923) ×1
- USB Cable ×1
Software Preparation
- Download Arduino IDE: Click to download Arduino IDE.
- Install SDK: click to enter FireBeetle ESP32-E IoT Microcontroller Wiki for SDK installation tutorial.
Sample Code
This example use Blink code to show the level change of the port.
int LED=D0;
void setup() {
pinMode(LED, OUTPUT);
}
void loop() {
digitalWrite(LED, HIGH);
delay(1000);
digitalWrite(LED, LOW);
delay(1000);
}
Result
Download codes into FireBeetle 2, then the LED for D0 will blink.
Was this article helpful?
