Spin2 equivalent of cnt
celtic3
Posts: 16
What is the spin2 equivalent to this line of code.....
'''
waitcnt(clkfreq + cnt)
'''
I cannot locate anything except CNT is a constant and waitcnt is waitct
Comments
In Spin2 you would do this:
There is also newer functions like
waitms(1000)
that will provide the same one second of delay.I agree with Evan if you're just going to insert brute force delay. Using waitct() is useful for synchronized delays so that a loop will run at a predictable rate.