Skip to content

ledcAttach is undefined  #9169

Closed
Closed
@patrickwasp

Description

@patrickwasp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0 migrationissue relates to migration from 2.X to 3.X version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions