esp32 soundboard project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
564 B

/**
* Blink
*
* Turns on an LED on for one second,
* then off for one second, repeatedly.
*
* https://github.com/platformio/platformio-examples/tree/develop/espressif
*/
#include "Arduino.h"
#define LED_PIN 5
void setup()
{
// initialize LED digital pin as an output.
pinMode(LED_PIN, OUTPUT);
}
void loop()
{
// turn the LED on (HIGH is the voltage level)
digitalWrite(LED_PIN, HIGH);
// wait for a second
delay(1000);
// turn the LED off by making the voltage LOW
digitalWrite(LED_PIN, LOW);
// wait for a second
delay(1000);
}