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

Software Preparation

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?

TOP