Skip to content

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

@anthonyjclarke

Description

@anthonyjclarke

I wonder if this is a simple user error issue.... trying to compile this and get the following errors. I think I have the board and framework all setup correctly. Using ArduinoIDE

/Users/anthonyjclarke/Downloads/ResistorTTGO/ResistorTTGO/ResistorTTGO.ino: In function 'void setup()':
/Users/anthonyjclarke/Downloads/ResistorTTGO/ResistorTTGO/ResistorTTGO.ino:36:3: error: 'ledcSetup' was not declared in this scope
36 | ledcSetup(pwmLedChannelTFT, pwmFreq, pwmResolution);
| ^~~~~~~~~
/Users/anthonyjclarke/Downloads/ResistorTTGO/ResistorTTGO/ResistorTTGO.ino:37:3: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
37 | ledcAttachPin(TFT_BL, pwmLedChannelTFT);
| ^~~~~~~~~~~~~
| ledcAttach

exit status 1

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

image image

Many thanks in advance

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