From d9d8f9758467c6bb2bb08b1dd44b84f1bcdc6a5b Mon Sep 17 00:00:00 2001 From: EnricoGuccii Date: Fri, 15 May 2026 14:23:45 +0200 Subject: setup --- .gitignore | 2 ++ CMakeLists.txt | 3 +++ platformio.ini | 15 ++++++++++++--- src/CMakeLists.txt | 6 ++++++ src/main.c | 12 ++++++++++++ 5 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 CMakeLists.txt create mode 100644 src/CMakeLists.txt create mode 100644 src/main.c diff --git a/.gitignore b/.gitignore index 0ba1c63..ec3db6d 100644 --- a/.gitignore +++ b/.gitignore @@ -67,3 +67,5 @@ vcpkg_installed/ # test output & cache Testing/ .cache/ + +.pio diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..63fd5ba --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,3 @@ +cmake_minimum_required(VERSION 3.16.0) +include($ENV{IDF_PATH}/tools/cmake/project.cmake) +project(iot-final-project) diff --git a/platformio.ini b/platformio.ini index 57471aa..fd9313e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -8,7 +8,16 @@ ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html -[env:esp32dev] +[env:lolin_s2_mini] platform = espressif32 -board = esp32dev -framework = espidf +board = lolin_s2_mini +framework = arduino +lib_deps = + adafruit/Adafruit GFX Library@^1.12.0 + adafruit/Adafruit SSD1306@^2.5.13 + mbed-aluqard/arduino@0.0.0+sha.3b83fc30bbdf + + +build_flags = + -Iinclude + -D ARDUINO_USB_CDC_ON_BOOT=1 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..483bc0c --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,6 @@ +# This file was automatically generated for projects +# without default 'CMakeLists.txt' file. + +FILE(GLOB_RECURSE app_sources ${CMAKE_SOURCE_DIR}/src/*.*) + +idf_component_register(SRCS ${app_sources}) diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..925a112 --- /dev/null +++ b/src/main.c @@ -0,0 +1,12 @@ +#include + +// #include +// +void setup() { + Serial.begin(115200); +} + +void loop() { + Serial.println("hello"); + delay(1000); +} -- cgit v1.2.3