Notifications
Clear all

Arduino IDE and ESP3866

6 Posts
3 Users
4 Likes
275 Views
sj_h1
(@sj_h1)
Estimable Member
Joined: 2 years ago
Posts: 154
Topic starter  

I have seen in some of the tutorials, a number of functions available on the ESP8266 that I can't find any documentation on. One such function was ledcAnalogWrite(), however there are more. Where can I find this information.

 

This topic was modified 4 months ago by sj_h1

   
Quote
Will
 Will
(@will)
Noble Member
Joined: 1 year ago
Posts: 2112
 

@sj_h1

ledcAnalogWrite does not exist as a documented function.

It is a user-defined subroutine in the sample code in the documentation you were (presumably) reading at ...

https://espressif-docs.readthedocs-hosted.com/projects/arduino-esp32/en/latest/api/ledc.html

I was kidnapped by mimes.
They did unspeakable things to me.


   
ron bentley reacted
ReplyQuote
sj_h1
(@sj_h1)
Estimable Member
Joined: 2 years ago
Posts: 154
Topic starter  

@will Thanks! Are there anymore of the jewels?

 


   
ReplyQuote
Will
 Will
(@will)
Noble Member
Joined: 1 year ago
Posts: 2112
 
Posted by: @sj_h1

@will Thanks! Are there anymore of the jewels?

No idea, I don't use ESPs, just Google.

I was kidnapped by mimes.
They did unspeakable things to me.


   
Inq reacted
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 3403
 

sj_h1 @will ledcWrite is a valid call, not Analog. See randomnerds, I use it to control the led brightnes, I think it uses PWM. You also need ledcSetup and ledcAttachPin to establish PWM frequencies and duty cycles.

https://randomnerdtutorials.com/esp32-pwm-arduino-ide/

 

"Don't tell people how to do things. Tell them what to do and let them surprise you with their results.” - G.S. Patton, Gen. USA
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon


   
ron bentley reacted
ReplyQuote
Will
 Will
(@will)
Noble Member
Joined: 1 year ago
Posts: 2112
 

@zander 

I know. The specific sub he asked about "ledcAnalogWrite" does not exist.

It is, however, created in the sample software appearing within the ESP documentation on the URL that I specified. The confusion is the OP not recognizing that the sub was NOT part of the official set of software provided.

I was kidnapped by mimes.
They did unspeakable things to me.


   
ron bentley reacted
ReplyQuote