Simpletools pause() function
JonnyMac
Posts: 9,104
in Propeller 1
I am starting to work with Propeller C and found that the pause() function can be tripped up with large values.
May I suggest it be recoded like this:
May I suggest it be recoded like this:
void pause(int time) // pause function definition { // If st_pauseTicks not initialized, set it up to 1 ms. // if(!st_pauseTicks) set_pause_dt(CLKFREQ/1000); long t0 = CNT; while (time--) { waitcnt(t0 += st_pauseTicks); } }
Comments
https://github.com/parallaxinc/Simple-Libraries/issues
And slow down, as I'm still trying to understand the Real Time Clock app that you built in Blockly!
Ken Gracey