Skip to content

error: 'ledcSetup' was not declared in this scope #9

@ouyangzhongmin

Description

@ouyangzhongmin

Archiving .pio/build/esp32-s3-devkitm-1/lib2ab/libESP32Servo.a
: warning: "ESP32" redefined
: note: this is the location of the previous definition
.pio/libdeps/esp32-s3-devkitm-1/TB6612FNG/TB6612FNG.cpp: In member function 'void Tb6612fngLedc::begin()':
.pio/libdeps/esp32-s3-devkitm-1/TB6612FNG/TB6612FNG.cpp:16:3: error: 'ledcSetup' was not declared in this scope; did you mean 'ledc_stop'?
16 | ledcSetup(chan, freq, range);
| ^~~~~~~~~
| ledc_stop
Compiling .pio/build/esp32-s3-devkitm-1/libe52/BLE/BLEClient.cpp.o
Indexing .pio/build/esp32-s3-devkitm-1/lib2ab/libESP32Servo.a
.pio/libdeps/esp32-s3-devkitm-1/TB6612FNG/TB6612FNG.cpp:17:3: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
17 | ledcAttachPin(pin, chan);
| ^~~~~~~~~~~~~
| ledcAttach
: warning: "ESP32" redefined
: note: this is the location of the previous definition
Compiling .pio/build/esp32-s3-devkitm-1/libe52/BLE/BLEDescriptor.cpp.o
*** [.pio/build/esp32-s3-devkitm-1/lib316/TB6612FNG/TB6612FNG.cpp.o] Error 1

platformIo
platform=espidf5.4
board = ESP32-S3-DevKitC-1
framework = arduino

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions