From 5a0c0e35b4557eab6bd6a6e75fa1500a7f002be8 Mon Sep 17 00:00:00 2001 From: IAteYourCookies Date: Sun, 13 Jul 2025 13:22:27 +0200 Subject: [PATCH] Working Blink Sketch --- .gitignore | 2 ++ platformio.ini | 22 +++++++++------------- src/main.cpp | 17 +++++++++++------ 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 525995f..d832319 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ include/README test/README lib/README +CMakeLists.txt +sdkconfig.esp32c6-wroom-1 diff --git a/platformio.ini b/platformio.ini index 5bde1ce..48f2ae8 100644 --- a/platformio.ini +++ b/platformio.ini @@ -1,19 +1,15 @@ -; PlatformIO Project Configuration File -; -; Build options: build flags, source filter -; Upload options: custom upload port, speed and extra flags -; Library options: dependencies, extra library storages -; Advanced options: extra scripting -; -; Please visit documentation for the other options and examples -; https://docs.platformio.org/page/projectconf.html - -[env:esp32-s3-devkitc-1] +[env:esp32-s3-supermini] platform = espressif32 board = esp32-s3-devkitc-1 framework = arduino + +monitor_speed = 115200 +upload_speed = 460800 + board_upload.flash_size = 4MB +board_build.psram = enabled board_build.partitions = default.csv + build_flags = - -DARDUINO_USB_CDC_ON_BOOT=1 - -DBOARD_HAS_PSRAM \ No newline at end of file + -D ARDUINO_USB_CDC_ON_BOOT=1 + -D ARDUINO_USB_MODE=1 \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 6548935..5474ec4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,14 +1,19 @@ #include -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); } \ No newline at end of file