diesel
Junior Member
Posts: 22
|
Post by diesel on Sept 17, 2014 18:21:04 GMT -8
I am averaging an ever changing output, by averaging it I keep the number changes almost readable.
I have added a non-blocking delay to reduce how often the number is updated on the screen, the problem is, now it just flashes on and off.
The solution may be simple, how I can keep the previous value displaying, then update it every 250 millis.
Any ideas would be greatly appreciated.
GD.cmd_number(68, 136, 30, OPT_CENTER | 5, value);
The value is a sensor output, converted to pressure in a PID control algorythm. So it must be without a blocking delay, as the program is time sensitive. Thanks,
|
|
diesel
Junior Member
Posts: 22
|
Post by diesel on Sept 17, 2014 19:37:18 GMT -8
I figured it out, I added a non blocking delay before the map conversion of the output value, works great.
now the displayed value is updated 4 times a second, very easily read now.
|
|