diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9777b31 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +# ESP-IDF default build directory +build +sdkconfig + +# VIM files +*.swp +*.swo diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 3fe9c1b..9eb7ec4 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -1,2 +1,2 @@ -idf_component_register(SRCS "armchair.c" +idf_component_register(SRCS "main.cpp" INCLUDE_DIRS ".") diff --git a/main/armchair.c b/main/armchair.c deleted file mode 100644 index 7b66f33..0000000 --- a/main/armchair.c +++ /dev/null @@ -1,6 +0,0 @@ -#include - -void app_main(void) -{ - -} diff --git a/main/main.cpp b/main/main.cpp new file mode 100644 index 0000000..d5e92e0 --- /dev/null +++ b/main/main.cpp @@ -0,0 +1,18 @@ +extern "C" +{ +#include +#include +#include +#include +#include "freertos/FreeRTOS.h" +#include "freertos/task.h" +#include "driver/gpio.h" +#include "esp_log.h" +#include "sdkconfig.h" +} + +extern "C" void app_main(void) +{ + + +}