Questions about PASM RCTIME v1.0 by Brandon Nimon
stilgar
Posts: 47
Hello,
I am currently using PASM RCTIME v1.0 to control the speed of LED sequencing. I am using this line of code to input the speed setting of the pot..
rc.RCTIME_forever(4, 500, 1, @rtime1) ' start loading sweep speed rtime with current RC value
waitcnt(clkfreq / 400 + cnt) ' allow a little time for rtime to get a value (may need to increase, or be able to decrease)
And this code to control PWM
rc.RCTIME_forever(5, 500, 1, @rtime2) ' start loading persistence rtime with current RC value
waitcnt(clkfreq / 400 + cnt) ' allow a little time for rtime to get a value (may need to increase, or be able to decrease)
My question is if I change " rc.RCTIME_forever " to " rc.RCTIME ", would I read the pot once only?
Then the question is, I am using rc time to read 2 pots subsequently. As rtime1 and rtime2, will this be effected?
What I want is to read the 2 pots at the start of run time only. and keep the rtime variables the same as long as the LED sequencing is run. if I adjust the pot(s), I would need to reset the chip.
thanks,
Stilgar
I am currently using PASM RCTIME v1.0 to control the speed of LED sequencing. I am using this line of code to input the speed setting of the pot..
rc.RCTIME_forever(4, 500, 1, @rtime1) ' start loading sweep speed rtime with current RC value
waitcnt(clkfreq / 400 + cnt) ' allow a little time for rtime to get a value (may need to increase, or be able to decrease)
And this code to control PWM
rc.RCTIME_forever(5, 500, 1, @rtime2) ' start loading persistence rtime with current RC value
waitcnt(clkfreq / 400 + cnt) ' allow a little time for rtime to get a value (may need to increase, or be able to decrease)
My question is if I change " rc.RCTIME_forever " to " rc.RCTIME ", would I read the pot once only?
Then the question is, I am using rc time to read 2 pots subsequently. As rtime1 and rtime2, will this be effected?
What I want is to read the 2 pots at the start of run time only. and keep the rtime variables the same as long as the LED sequencing is run. if I adjust the pot(s), I would need to reset the chip.
thanks,
Stilgar