AIvoices/firmware-cpp/test/simple_led_test.cpp
2025-04-08 14:05:27 +01:00

18 lines
No EOL
456 B
C++

#include <Arduino.h>
// define led according to pin diagram in article
const int led = D10; // there is no LED_BUILTIN available for the XIAO ESP32C3.
void setup()
{
// initialize digital pin led as an output
pinMode(led, OUTPUT);
}
void loop()
{
digitalWrite(led, HIGH); // turn the LED on
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off
delay(1000); // wait for a second
}