PWM and WDT resets #5251
Replies: 1 comment
-
Posted at 2016-01-10 by tve 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? Posted at 2016-01-11 by jnewcomb 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}); =undefined > Disconnected >Posted at 2016-01-13 by @gfwilliams 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) Posted at 2016-01-13 by @gfwilliams @tve check this out - should be pretty easy to apply to ESP8266? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-01-09 by jnewcomb
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..
Beta Was this translation helpful? Give feedback.
All reactions