@JumJum - I did find that one first, but I figured if we are going to have a module for the Espruino it had better have all the bells and whistles.
This version from Rhys Williams is ported from Brett Beauregard's Arduino version which was pretty well documented on his blog a few years ago.
@Gordon - No never really done any object oriented stuff, just simple bits and pieces. I seem to learn best by hacking away at other examples to understand whats going on. But I will definitely refer to your example.
I had pretty much figured it out what you had with the PID code.
The only issue may be when the value that is returned from getTime() rolls over.
It appears to be working using a few simple tests (finger on thermistor) watch demand decrease, finger off thermistor watch demand increase.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@JumJum - I did find that one first, but I figured if we are going to have a module for the Espruino it had better have all the bells and whistles.
This version from Rhys Williams is ported from Brett Beauregard's Arduino version which was pretty well documented on his blog a few years ago.
@Gordon - No never really done any object oriented stuff, just simple bits and pieces. I seem to learn best by hacking away at other examples to understand whats going on. But I will definitely refer to your example.
I had pretty much figured it out what you had with the PID code.
The only issue may be when the value that is returned from getTime() rolls over.
It appears to be working using a few simple tests (finger on thermistor) watch demand decrease, finger off thermistor watch demand increase.