cd ~/development/SDKs/esp/esp-idf
. ./export.sh
mkdir -p ~/development/espressif/
cd ~/development/espressif
idf.py create-project hello_world
cd hello_world
#include <stdio.h>
#include “freertos/FreeRTOS.h”
#include “freertos/task.h”
void app_main(void)
{
while (1)
printf(“Hello World!\n”);
vTaskDelay(1000 / portTICK_PERIOD_MS);
}
idf.py set-target esp32
idf.py build
idf.py -p /dev/ttyUSB0 flash
idf.py -p /dev/ttyUSB0 monitor
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.