Update to support ESP-IDF v5 in develop branch
This commit is contained in:
parent
7c6bdc5635
commit
44342b653f
13 changed files with 55 additions and 46 deletions
|
@ -9,8 +9,14 @@
|
|||
#include "esp_lcd_backlight.h"
|
||||
#include "driver/ledc.h"
|
||||
#include "driver/gpio.h"
|
||||
#include "rom/gpio.h"
|
||||
#include "esp_log.h"
|
||||
#include "soc/ledc_periph.h" // to invert LEDC output on IDF version < v4.3
|
||||
#include "esp_idf_version.h"
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
|
||||
#include "soc/gpio_sig_map.h"
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
bool pwm_control; // true: LEDC is used, false: GPIO is used
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue