![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ESP32
素手执锐血衊白衣
懒。
展开
-
ESP32 中的那些坑
一、nvs_get_str()函数函数原型:esp_err_t nvs_get_str (nvs_handle handle, const char* key, char* out_value, size_t* length);坑:length这个参数奇葩得很,如果out_value的值为NIULL,它将返回键所对应字符串的长度(含\0),而如果out_value非NULL,则将其当作ou...原创 2020-03-04 18:32:48 · 9248 阅读 · 0 评论 -
ESP32(二)——ESP-IDF hello_world例程解析
#include <stdio.h>#include "freertos/FreeRTOS.h"#include "freertos/task.h" //IDF框架是基于FreeRTOS的#include "esp_system.h" //esp32 系统操作库#include "esp_spi_flash.h" //闪存读写库void app_main()app_...原创 2020-01-24 02:28:11 · 3333 阅读 · 0 评论 -
ESP32(一)——ESP-IDF 环境搭建(windows)
官方指南——快速入门1、首先,获取ESP-IDF 工具安装器,https://dl.espressif.com/dl/esp-idf-tools-setup-2.2.exe得到如下文件:2、安装过程:1)双击工具安装器,选择 I accept the agreement2)选择python版本,如果没有的话,安装后重新开始3)选择git版本,如果没有安装可以选择...原创 2020-01-19 23:33:59 · 5403 阅读 · 4 评论