RosettaCodeData/Task/Loops-For-with-a-specified-step/Spin/loops-for-with-a-specified-step.spin
2023-07-01 13:44:08 -04:00

17 lines
251 B
Text

con
_clkmode = xtal1 + pll16x
_clkfreq = 80_000_000
obj
ser : "FullDuplexSerial.spin"
pub main | n
ser.start(31, 30, 0, 115200)
repeat n from 0 to 19 step 3
ser.dec(n)
ser.tx(32)
waitcnt(_clkfreq + cnt)
ser.stop
cogstop(0)