Working Blink Sketch
This commit is contained in:
17
src/main.cpp
17
src/main.cpp
@ -1,14 +1,19 @@
|
||||
#include <Arduino.h>
|
||||
|
||||
int myFunction(int, int);
|
||||
#define LED_BUILTIN 48
|
||||
|
||||
void setup() {
|
||||
int result = myFunction(2, 3);
|
||||
delay(1000);
|
||||
|
||||
Serial.begin(115200);
|
||||
Serial.println("ESP32-S3 Blink Starting...");
|
||||
pinMode(LED_BUILTIN, OUTPUT);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
}
|
||||
|
||||
int myFunction(int x, int y) {
|
||||
return x + y;
|
||||
Serial.println("Beep Beep...");
|
||||
digitalWrite(LED_BUILTIN, HIGH);
|
||||
delay(500);
|
||||
digitalWrite(LED_BUILTIN, LOW);
|
||||
delay(1000);
|
||||
}
|
||||
Reference in New Issue
Block a user