September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
20
Task/Loops-Do-while/Spin/loops-do-while.spin
Normal file
20
Task/Loops-Do-while/Spin/loops-do-while.spin
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
con
|
||||
_clkmode = xtal1 + pll16x
|
||||
_clkfreq = 80_000_000
|
||||
|
||||
obj
|
||||
ser : "FullDuplexSerial.spin"
|
||||
|
||||
pub main | n
|
||||
ser.start(31, 30, 0, 115200)
|
||||
|
||||
n := 0
|
||||
repeat
|
||||
n += 1
|
||||
ser.dec(n)
|
||||
ser.tx(32)
|
||||
while n // 6
|
||||
|
||||
waitcnt(_clkfreq + cnt)
|
||||
ser.stop
|
||||
cogstop(0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue