Closed
Description
Board
ESP32S3
Device Description
Seeed Studio XIAO ESP32S3, attached to nothing
PLATFORM: Espressif 32 (2023.11.1) > Seeed Studio XIAO ESP32S3
Hardware Configuration
nothing connected
Version
other
IDE Name
PlatformIO
Operating System
Ubuntu
Flash frequency
40
PSRAM enabled
yes
Upload speed
115200
Description
'ledcAttachChannel' was not declared in this scope
https://espressif-docs.readthedocs-hosted.com/projects/arduino-esp32/en/latest/api/ledc.html
Sketch
void setup() {
ledcAttach(LED_BUILTIN, 2000, 12);
}
void loop(){}
Debug Message
/tmp/arduino_modified_sketch_36424/ledcFrequency.ino: In function 'void setup()':
ledcFrequency:2:3: error: 'ledcAttach' was not declared in this scope
ledcAttach(LED_BUILTIN, 2000, 12);
^~~~~~~~~~
/tmp/arduino_modified_sketch_36424/ledcFrequency.ino:2:3: note: suggested alternative: 'ledcAttachPin'
ledcAttach(LED_BUILTIN, 2000, 12);
^~~~~~~~~~
ledcAttachPin
exit status 1
'ledcAttach' was not declared in this scope
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.