loco-engineering / simpledcc-arduino

Wireless DCC / WCC decoders for railway modelling (trains and accessories) and other models/toys based on Arduino
https://loco.engineering
9 stars 1 forks source link

Whatever version or code i use, i end with the following error : Compilation error: 'ledcSetup' was not declared in this scope #1

Closed micclfr closed 2 months ago

micclfr commented 3 months ago

In file included from C:\Users\claud\Documents\Arduino\simpledcc-arduino\simpledcc-arduino.ino:19: C:\Users\claud\Documents\Arduino\libraries\LiteLED\src/LiteLED.h:43:5: error: 'rmt_channel_t' does not name a type; did you mean 'i2s_channel_t'? 43 | rmt_channel_t channel; // < ESP32 RMT channel to use | ^~~~~ | i2s_channel_t C:\Users\claud\Documents\Arduino\libraries\LiteLED\src/LiteLED.h:54:52: error: 'rmt_channel_t' has not been declared 54 | LiteLED( led_strip_type_t led_type, bool rgbw, rmt_channel_t channel = RMT_CHANNEL_0 ); | ^~~~~ C:\Users\claud\Documents\Arduino\libraries\LiteLED\src/LiteLED.h:54:76: error: 'RMT_CHANNEL_0' was not declared in this scope 54 | LiteLED( led_strip_type_t led_type, bool rgbw, rmt_channel_t channel = RMT_CHANNEL_0 ); | ^~~~~ In file included from C:\Users\claud\Documents\Arduino\simpledcc-arduino\src\features\wcc_module.h:6, from C:\Users\claud\Documents\Arduino\simpledcc-arduino\src\network\webserver_module.h:5, from C:\Users\claud\Documents\Arduino\simpledcc-arduino\src\dcc_reader\dcc_module.h:2, from C:\Users\claud\Documents\Arduino\simpledcc-arduino\simpledcc-arduino.ino:21: C:\Users\claud\Documents\Arduino\simpledcc-arduino\src\features\led_module.h: In function 'void add_led_connection(uint8_t, uint8_t, float, long unsigned int, long unsigned int, long unsigned int)': C:\Users\claud\Documents\Arduino\simpledcc-arduino\src\features\led_module.h:28:9: error: 'ledcSetup' was not declared in this scope 28 | ledcSetup(led_connections_count, freq, resolution); | ^~~~~ C:\Users\claud\Documents\Arduino\simpledcc-arduino\src\features\led_module.h:29:9: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'? 29 | ledcAttachPin(led_pin, led_connections_count); | ^~~~~ | ledcAttach C:\Users\claud\Documents\Arduino\simpledcc-arduino\src\features\wcc_module.h: In function 'void handle_wcc_message(uint8_t*, size_t)': C:\Users\claud\Documents\Arduino\simpledcc-arduino\src\features\wcc_module.h:68:5: error: 'esp_efuse_mac_get_default' was not declared in this scope 68 | esp_efuse_mac_get_default(efuse_mac_address); | ^~~~~~~~~

exit status 1

Compilation error: 'ledcSetup' was not declared in this scope