diff options
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | CMakeLists.txt | 3 | ||||
| -rw-r--r-- | platformio.ini | 15 | ||||
| -rw-r--r-- | src/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | src/main.c | 12 |
5 files changed, 35 insertions, 3 deletions
@@ -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 <Arduino.h> + +// #include <settings.h> +// +void setup() { + Serial.begin(115200); +} + +void loop() { + Serial.println("hello"); + delay(1000); +} |