Teagueduino RI Protocol v0.4.1
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

 
$
%
123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
|
 
Still loading...
ABCDEFGHIJKLMNOPQRST
1
startByte:
2
endByte;
3
4
DESCRIPTIONCMDLEN (bytes)DATA
5
request Infoi0
6
send InfoI2[hw_version],[?]
7
request I/O Datad0
8
send I/O DataD42[In0]:2, [In1]:2, [In2]:2, [In3]:2, [In4]:2,[Out0]:2, [Out1]:2, [Out2]:2, [Out3]:2,[Out4]:2, [Var_1]:2, [Var_2]:2, [Var_3]:2, [Var_4]:2, [Var_5]:2, [Var_6]:2, [Var_7]:2, [Var_8]:2, [Var_9]:2 currentPage, currentLineOnPage, linesSinceLastRead,isGoing
9
request Pagep2[page_num], [section] (page is 0-8, section is 0-3 for each page).
10
send PageP26[page_num], [section], [page_data]:24 (=12 words)
11
send PageSectionWordW5[page_num],[section],[word_offset_in_section],[Page Data InstructionWord]:2 (auto return 'w' with confirmation)
12
send PageSectionWord (confirmation)w5[page_num],[section],[word_offset_in_section],[Page Data InstructionWord]:2
13
send Reset device signalR0
14
send PausePlay stateG1[isGoing] (read status from I/O Data packet)
15
request Notes page sectionn2[page_num], [section] (page is 0-1, section is 0-3 for each page).
16
send Notes page sectionN26[page_num], [section], [page_data]:24 (as ascii characters)
17
18
PAGE DATA INSTRUCTION WORD (2-bytes per)B0B1
19
<BLANK>0x800x00A,B,C = anything
20
if(A,B,C){0x800x10A=(InVAR or OutVAR or TempVAR or CONST), B=(COMPARISON), C=(InVAR or OutVAR or TempVAR or CONST)
21
}else{0x800x11A,B,C = anything
22
}0x800x12A,B,C = anything
23
Out[0,1,2,3]=(A,B);0x800x2[Out port]A=(InVAR or OutVAR or TempVAR or CONST), B=(OutTYPE), C=anything
24
[V0,V1,V2,V3] = A,B,C;0x800x3[varNum]A=(InVAR or OutVAR or TempVAR or CONST), B=(OPERATOR), C=(CONST or InVAR or OutVAR or TempVAR)
25
delay(A);0x800x40A=(InVAR or OutVAR or TempVAR or CONST), B=anything, C=anything
26
for(A=0; A<C; A++){0x800x50A=(InVAR or OutVAR or TempVAR or CONST), B=anything, C=(InVAR or OutVAR or TempVAR or CONST)
27
waituntil(A,B,C);0x800x60A=(TempVAR), B=(COMPARISON), C=(InVAR or OutVAR or TempVAR or CONST)
28
while(A,B,C){0x800x70A=(TempVAR), B=(COMPARISON), C=(InVAR or OutVAR or TempVAR or CONST)
29
30
31
Random0x900x00Produces a random number between 0 and 1000 (inclusive)
32
InVAR0xA0Port number0-4
33
OutVAR0xB0Port Number0-4
34
TempVAR0xC0Temp Var Number0-8
35
CONST0xD[high-4-bits][low 7 bits]0-2048 (shifted by -1024 to give plus and minus values)
36
37
OPERATOR or COMPARISON or OutTYPE0xE0op or comp or outTypewhen operator 0-5: (+, -, *, /, %,+), when comparison 0-5: (==, <, <=, >, >=, !=), when OutTYPE 0-5: (PWM,DIG,TNE,SRV,PWM,TNE)
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Loading...
 
 
 
Sheet1