Create ESP32 project
This commit is contained in:
2
esp32_device/main/CMakeLists.txt
Executable file
2
esp32_device/main/CMakeLists.txt
Executable file
@ -0,0 +1,2 @@
|
||||
idf_component_register(SRCS "main.c"
|
||||
INCLUDE_DIRS ".")
|
9
esp32_device/main/main.c
Executable file
9
esp32_device/main/main.c
Executable file
@ -0,0 +1,9 @@
|
||||
#include <stdio.h>
|
||||
#include "esp_system.h"
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
printf("\n\n\nhello world and bye\n\n\n");
|
||||
fflush(stdout);
|
||||
esp_restart();
|
||||
}
|
Reference in New Issue
Block a user