Notifications
Clear all

Arduino IDE and ESP3866

6 Posts
3 Users
4 Likes
763 Views
(@sj_h1)
Member
Joined: 3 years ago
Posts: 167
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.

 


   
Quote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2504
 

@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

Anything seems possible when you don't know what you're talking about.


   
ron bentley reacted
ReplyQuote
(@sj_h1)
Member
Joined: 3 years ago
Posts: 167
Topic starter  

@will Thanks! Are there anymore of the jewels?

 


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2504
 
Posted by: @sj_h1

@will Thanks! Are there anymore of the jewels?

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

Anything seems possible when you don't know what you're talking about.


   
Inq reacted
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 6662
 

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/

 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
Sure you can learn to be a programmer, it will take the same amount of time for me to learn to be a Doctor.


   
ron bentley reacted
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2504
 

@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.

Anything seems possible when you don't know what you're talking about.


   
ron bentley reacted
ReplyQuote