TR.0LL schrieb:
> Kennt niemand eine Lösung dafür.
Doch: Lerne C.
Den Arduino-Blödsinn kenne ich nicht, aber da Du mit
1 | #include "driver/ledc.h"
|
die ledc.h inkludierst, bekommst Du auch die ledc_types.h mit
inkludiert.
Wieso zum Henker löscht Du dann LEDC_AUTO_CLK wieder?
Also entweder:
da
1 | typedef enum {
|
2 | LEDC_AUTO_CLK = 0, /*!< The driver will automatically select the source clock(REF_TICK or APB) based on the giving resolution and duty parameter when init the timer*/
|
3 | LEDC_USE_REF_TICK, /*!< LEDC timer select REF_TICK clock as source clock*/
|
4 | LEDC_USE_APB_CLK, /*!< LEDC timer select APB clock as source clock*/
|
5 | LEDC_USE_RTC8M_CLK, /*!< LEDC timer select RTC8M_CLK as source clock. Only for low speed channels and this parameter must be the same for all low speed channels*/
|
6 | #ifdef SOC_LEDC_SUPPORT_XTAL_CLOCK
|
7 | LEDC_USE_XTAL_CLK, /*!< LEDC timer select XTAL clock as source clock*/
|
8 | #endif
|
9 | } ledc_clk_cfg_t;
|
oder besser den ganzen #define-Schwachsinn wegmachen.
So, und jetzt erstmal ein C-Anfängerbuch besorgen!