-
• #2
Hardware PWM doesn't work. The person who added the code didn't get it to work and I haven't looked at it, so I can't really tell you why it's not working. Have you tried the software PWM?
-
• #3
Hi, I can't get the software PWM to work either. I get a WDT reset if any call is made to analogWrite(..)
D4.mode('output');
=undefined
analogWrite(D4, 0.1, {soft:true});
=undefinedDisconnected
-
• #4
Looking at it, there is no software PWM at the moment. It just needs a few lines copying over from the STM32 port - it could probably just do soft PWM for everything (whether requested or not)
-
• #5
@tve check this out - should be pretty easy to apply to ESP8266?
https://github.com/espruino/Espruino/commit/a08421af7d18fa1e671904b961f064f6e4b0707a
Hi, can anyone give the current state of play with PWM functions with espruino_1v84.tve_master_d8dec28_esp8266?
Intro states it's not yet implemented, but see code in github
https://github.com/espruino/Espruino/blob/master/targets/esp8266/jshardware.c
jshPinAnalogOutput
So I've been playing - trying getting it working. Im getting WDT timeouts when ever I call 'analogWrite' in any of its forms
Working with Web IDE so the following message gets sent to the UART
Tried a number of combinations:
Tried pin D14 too
PS
Great project and fun to play with..