Skip to content

the esp32 - teachablemachine code might be expired? #27

Open

Description

@hm-crypto

ive tried the code and it kept giving this,

C:\Users\User\OneDrive\Documents\Arduino\cina\cina.ino: In function 'void setup()':
C:\Users\User\OneDrive\Documents\Arduino\cina\cina.ino:184:3: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
184 | ledcAttachPin(4, 4);
| ^~~~~~~~~~~~~
| ledcAttach
C:\Users\User\OneDrive\Documents\Arduino\cina\cina.ino:185:3: error: 'ledcSetup' was not declared in this scope; did you mean 'ledc_stop'?
185 | ledcSetup(4, 5000, 8);
| ^~~~~~~~~
| ledc_stop
C:\Users\User\OneDrive\Documents\Arduino\cina\cina.ino: In function 'esp_err_t cmd_handler(httpd_req_t*)':
C:\Users\User\OneDrive\Documents\Arduino\cina\cina.ino:416:9: error: 'ledcDetachPin' was not declared in this scope; did you mean 'ledcDetach'?
416 | ledcDetachPin(P1.toInt());
| ^~~~~~~~~~~~~
| ledcDetach
C:\Users\User\OneDrive\Documents\Arduino\cina\cina.ino:425:11: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
425 | ledcAttachPin(4, 4);
| ^~~~~~~~~~~~~
| ledcAttach
C:\Users\User\OneDrive\Documents\Arduino\cina\cina.ino:426:11: error: 'ledcSetup' was not declared in this scope; did you mean 'ledc_stop'?
426 | ledcSetup(4, 5000, 8);
| ^~~~~~~~~
| ledc_stop
C:\Users\User\OneDrive\Documents\Arduino\cina\cina.ino:430:11: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
430 | ledcAttachPin(P1.toInt(), 9);
| ^~~~~~~~~~~~~
| ledcAttach
C:\Users\User\OneDrive\Documents\Arduino\cina\cina.ino:431:11: error: 'ledcSetup' was not declared in this scope; did you mean 'ledc_stop'?
431 | ledcSetup(9, 5000, 8);
| ^~~~~~~~~
| ledc_stop
C:\Users\User\OneDrive\Documents\Arduino\cina\cina.ino:468:9: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
468 | ledcAttachPin(4, 4);
| ^~~~~~~~~~~~~
| ledcAttach
C:\Users\User\OneDrive\Documents\Arduino\cina\cina.ino:469:9: error: 'ledcSetup' was not declared in this scope; did you mean 'ledc_stop'?
469 | ledcSetup(4, 5000, 8);
| ^~~~~~~~~
| ledc_stop
C:\Users\User\OneDrive\Documents\Arduino\cina\cina.ino:505:9: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
505 | ledcAttachPin(4, 4);
| ^~~~~~~~~~~~~
| ledcAttach
C:\Users\User\OneDrive\Documents\Arduino\cina\cina.ino:506:9: error: 'ledcSetup' was not declared in this scope; did you mean 'ledc_stop'?
506 | ledcSetup(4, 5000, 8);
| ^~~~~~~~~
| ledc_stop
exit status 1

Compilation error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?

ive tried using ai but its no use

Activity

  1. h0nigd4chs commented on Jun 25, 2026

    @h0nigd4chs

    Let me Check in this on the Weekend! Thanks for notice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions