-->
Page 1 of 1

I cant seem to find if this is possible in documentation?

PostPosted: Mon May 09, 2016 10:58 pm
by forlotto
It was brought to my attention that analogue write is possible through PWM on the esp this could be an important piece of the puzzle for me possibly for dimming but also maybe for others I am not entirely sure to be honest...

But here is the post I am a bit dense at times on things it may be something I missed even though I checked it over do I need to add the .ino and create a new binary to make it happen ? Kinda confused what I need to use essentially is pin D4 this is what I am hooked to but supposedly from these writings any pin can do analogue write I find this rather interesting possibly useful to basic and as I say maybe it already exists?

Check this post for more info:
viewtopic.php?f=45&t=9907&p=47169#p47169

Re: I cant seem to find if this is possible in documentation

PostPosted: Tue May 10, 2016 12:29 am
by Mmiscool
Internally the pwo command maps to this arduino function
https://www.arduino.cc/en/Reference/AnalogWrite

It allows for pwm output.

io(pwo,d4,500) for example.

internal source code is
Code: Select all  else if (PinCommand == F("pwo")) analogWrite(pin, PinValue);