Newbe help with ledcxxx

I went to a seminar where they used a Fire Beetle ESP32. I was not able to sit in on the coding class but they gave me a copy of the code.
This line of code won't compile;
ledcSetup(0, 500, 8); // Set PWM pin connection number and attributes
There are others as well but I will start here.

I tried to find a library and thought I had one but it still fails. I don't know what they used. My search took me to GitHub but what I downloaded doesn't work. What confuses me is there are no #includes in the code. I feel like they had a special setup on their computers. I can get the ESP32 to work with my code that does not use any ledc routines. I don't think Google failed me, I think I am just not getting the right files. I am confused. What do I need?
Thanks

First read details on how to post your queries, then supply things like circuit diagram (not fritzing) and the complete code in code brackets as explained.

Hello

Hello teqlove86

Welcome back.

Take a search engine of your choice and ask the WWW for 'ledcSetup ' to collect some data to be sorted out to get the needed information.

Probably an old library. The new "setup" being:
bool ledcAttach(uint8_t pin, uint32_t freq, uint8_t resolution);

Your example used the old (2.X) ESP32 version. You are compiling with the new (3.X) version. Either move to the old version or update the code for the new version.
https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html

Ah, thanks, that has to be the root of my problem. An old library I am not finding. That would explain everything. The library I did find has exactly what you describe. I assumed (my mistake) the presenter would have current stuff. I will have to rewrite the code.