#include "led.h"
#include "key.h"
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32-S3!");
KEY_Init();
LED_Init();
}
void loop() {
// put your main code here, to run repeatedly:
if (digitalRead(KEY_PIN)==0)
{
delay(10);
if(digitalRead(KEY_PIN)==0)
{
LED_OFF();
}
}
// this speeds up the simulation
}
Loading
esp32-s3-devkitc-1
esp32-s3-devkitc-1