Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
30
Task/Show-ASCII-table/Spin/show-ascii-table.spin
Normal file
30
Task/Show-ASCII-table/Spin/show-ascii-table.spin
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
con
|
||||
_clkmode = xtal1+pll16x
|
||||
_clkfreq = 80_000_000
|
||||
|
||||
obj
|
||||
ser : "FullDuplexSerial"
|
||||
|
||||
pub main | i, j
|
||||
|
||||
ser.start(31, 30, 0, 115200)
|
||||
|
||||
repeat i from 0 to 15
|
||||
repeat j from i + 32 to 127 step 16
|
||||
if j < 100
|
||||
ser.tx(32)
|
||||
ser.dec(j)
|
||||
ser.str(string(": "))
|
||||
case j
|
||||
32:
|
||||
ser.str(string("SPC"))
|
||||
127:
|
||||
ser.str(string("DEL"))
|
||||
other:
|
||||
ser.tx(j)
|
||||
ser.str(string(" "))
|
||||
ser.str(string(" "))
|
||||
ser.str(string(13, 10))
|
||||
|
||||
waitcnt(_clkfreq + cnt)
|
||||
ser.stop
|
||||
Loading…
Add table
Add a link
Reference in a new issue