ESP32 SetWatch? #7057
Replies: 1 comment
-
Posted at 2017-12-07 by opichals There is an issue for this at espruino/Espruino#1176. Posted at 2017-12-08 by JumJum In actual branch for ESP32 is a change in jshGetSystemTime() to fix problems with ESP32 internal time routine Posted at 2017-12-08 by opichals Could you get it to master via a separate PR if that helps with the basic setWatch() stuff? It seems like quite some number of people are hitting this problem. Posted at 2017-12-09 by JumJum @wilberforce already did Posted at 2017-12-09 by opichals Cool! Thank you! :) Posted at 2017-12-14 by Wilberforce This issue has been fixed. It will be in version 1v95, so for now a latest travis build will work: Posted at 2017-12-14 by cmo Thank you all. I can confirm this now works using the latest Travis build for at least these pins: D0, D12, D13, D14, D15, using this code:
One question, when I do this I get "New interpreter error: FIFO_FULL". It still works but should I be concerned?
Posted at 2017-12-14 by @gfwilliams Realistically that probably means that so many input events have been put in the input queue (because of switch bouncing?) that the FIFO have has to drop some. Posted at 2017-12-14 by Wilberforce Hardware wise how are you triggering the pin? Using D0. The inbuilt flash button, I don't get this message. Posted at 2017-12-15 by cmo You're right. If I use the onboard button to trigger D0 it works without the error. However, if I add a button to D0 and pull it up I get the FIFO_FULL error. This sounds like a hardware problem which I can work through. Thanks again for the help on this. Posted at 2017-12-15 by @gfwilliams @cmo you can just stick a small capacitor across the button and it should sort you out. It sounds like a very noisy button though! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-12-07 by cmo
Has anyone gotten an interrupt or setWatch to work on the ESP32? And if so which pin(s)?
I see a few comments online about issues with this feature. When I try on different pins it sometimes works or the device freezes. Is it maybe a wiring issue on my part? I tried a pullup & pulldown solution and no luck.
Here's my code:
Beta Was this translation helpful? Give feedback.
All reactions