- 博客(5)
- 收藏
- 关注
原创 二、esp32-GPIO例程程序
这个测试代码展示了如何配置GPIO以及如何在中断时使用它。测试方法:1.连接GPIO18和GPIO42.连接GPIO19和GPIO53.在GPIO18/19上产生脉冲,触发GPIO4/5上的中断//GPIO 例程#include <stdio.h>#include <string.h>#include <stdlib.h>#include "freertos/FreeRTOS.h"#include "freertos/task.h"#inc.
2022-03-13 21:13:01
816
原创 一、esp32-blink程序
基于esp-idf,实现esp32开发板上led灯的闪烁。main.c中程序如下。#include <stdio.h>#include "freertos/FreeRTOS.h"#include "freertos/task.h"#include "driver/gpio.h"#define BLINK_GPIO CONFIG_BLINK_GPIOstatic uint8_t s_led_state = 0;static void blink_led(void){ .
2022-03-09 18:14:35
882
原创 二、ESP-IDF库函数之RTC GPIO
RTC GPIO1. 函数rtc_gpio_is_valid_gpio2. 函数rtc_gpio_init3. 函数rtc_gpio_deinit4. 函数rtc_gpio_get_level5. 函数rtc_gpio_set_level6. 函数rtc_gpio_set_direction7. 函数rtc_gpio_pullup_en8. 函数rtc_gpio_pulldown_en9. 函数rtc_gpio_pullup_dis10. 函数rtc_gpio_pulldown_dis1. 函数rtc_g
2022-03-09 16:25:11
908
原创 一、ESP-IDF库函数之GPIO
GPIO(包括RTC底层I/O)1. 函数gpio_config2. 函数gpio_set_intr_type3. 函数gpio_intr_enable4. 函数gpio_intr_disable5. 函数gpio_set_level6. 函数gpio_get_level7. 函数gpio_set_direction8. 函数gpio_set_pull_mode9. 函数gpio_wakeup_enable10. 函数gpio_wakeup_disable11. 函数gpio_isr_register12.
2022-03-09 12:14:34
3561
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人