Show Temperature - Why code Not Stable for extended period of time? #1737
Replies: 2 comments
-
Posted at 2016-12-16 by @allObjects you have competing/overlapping intervals / timeouts... ...give this a shot...
...and this
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-16 by user71302 Thanks. I knew it was probably because of my code as I'm new to JavaScript and only able to access my Puck.js with my Android Phone. Tough writing code on a small phone screen. Was very surprised that my Mac didn't have BLE and my iPad either. Still trying to get operational on my a Linux BBB but saw other were using on PIE so should be possible. Thanks for sharing your code and showing me other ways to accomplish the display of temperature. I also wanted to be able to handle three digits and possible use the amber led. I want to expand this project to monitor and set alarm thresholds but for now the display is a great start to learn JavaScript and Puck.js. Again Thanks, John |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-12-16 by user71302
I'm sure there are better ways to do this but I wanted to visually show the temperature on the Puck.js.
I setup to flash lights for temperature digits. First digit flash Red LED number of times to indicate Ten's, and flash Green LED number of time to represent temperature units digit.
Why does the following code fail after running for a period of time?
Lights go crazy and doesn't represent temperature
Beta Was this translation helpful? Give feedback.
All reactions