-
Notifications
You must be signed in to change notification settings - Fork 0
/
PC.spin
45 lines (33 loc) · 770 Bytes
/
PC.spin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
OBJ
Serial: "Simple_Serial"
Num: "Simple_Numbers"
VAR
byte keys
PUB Start
Serial.init(31, 30,9600)
PUB SendInt(key, val)
Serial.Str(String("["))
Serial.Str(key)
Serial.Str(String(": "))
Serial.Str(num.dec(val))
Serial.Str(String("]"))
PUB SendStr(key, val)
Serial.Str(String("["))
Serial.Str(key)
Serial.Str(String(": '"))
Serial.Str(val)
Serial.Str(String("']"))
PUB SendTuple5(key, a, b, c, d, e)
Serial.Str(String("["))
Serial.Str(key)
Serial.str(String(": ("))
Serial.Str(num.dec(a))
Serial.str(string(", "))
Serial.Str(num.dec(b))
Serial.str(string(", "))
Serial.Str(num.dec(c))
Serial.str(string(", "))
Serial.Str(num.dec(d))
Serial.str(string(", "))
Serial.Str(num.dec(e))
Serial.str(string(")]"))