近日在学习IDF,将原有IDF代码,升级到IDF 5以上时。发现一些API的变化,具体如下(今后碰到再继续补充):
一、官网上找到部分。截图如下
二、网上找到部分
The fixes I attempted which got the file to compile:
- replace gpio_pad_select_gpio() with gpio_pin_reset()
- replace gpio_matrix_out() with esp_rom_gpio_connect_out_signal()
- add #include "rom/gpio.h" to driver/gpio.h
- change .bit_num to .duty_resolution in LCD_backlight_timer
manually find the #define S