This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:v2:protocol_reference [2018/10/10 19:31] pixycam [getVersion()] |
wiki:v2:protocol_reference [2020/05/29 00:02] pixycam [getVersion()] |
||
---|---|---|---|
Line 54: | Line 54: | ||
|0 - 1 |16-bit sync | 175, 193 (0xc1af)| | |0 - 1 |16-bit sync | 175, 193 (0xc1af)| | ||
|2 |Type of packet |15 | | |2 |Type of packet |15 | | ||
- | |3 |Length of payload |7 | | + | |3 |Length of payload |16 | |
|4 - 5 |16-bit checksum | sum of payload bytes | | |4 - 5 |16-bit checksum | sum of payload bytes | | ||
|6 - 7 |16-bit hardware version | (varies) | | |6 - 7 |16-bit hardware version | (varies) | | ||
Line 94: | Line 94: | ||
^Byte ^Description ^Value(s) ^ | ^Byte ^Description ^Value(s) ^ | ||
|0 - 1 |16-bit sync| 175, 193 (0xc1af)| | |0 - 1 |16-bit sync| 175, 193 (0xc1af)| | ||
- | |2 |Type of packet |17 | | + | |2 |Type of packet |1 | |
|3 |Length of payload |4 | | |3 |Length of payload |4 | | ||
|4 - 5 |16-bit checksum | sum of payload bytes | | |4 - 5 |16-bit checksum | sum of payload bytes | | ||
Line 112: | Line 112: | ||
^Byte ^Description ^Value(s) ^ | ^Byte ^Description ^Value(s) ^ | ||
|0 - 1 |16-bit sync | 175, 193 (0xc1af)| | |0 - 1 |16-bit sync | 175, 193 (0xc1af)| | ||
- | |2 |Type of packet |19 | | + | |2 |Type of packet |1 | |
|3 |Length of payload |4 | | |3 |Length of payload |4 | | ||
|4 - 5 |16-bit checksum | sum of payload bytes | | |4 - 5 |16-bit checksum | sum of payload bytes | | ||
- | |6 - 9 |32-bit result |result value | | + | |6 - 9 |32-bit result/acknowledge |result value | |
==== setLED(r, g, b) ==== | ==== setLED(r, g, b) ==== | ||
Line 131: | Line 131: | ||
^Byte ^Description ^Value(s) ^ | ^Byte ^Description ^Value(s) ^ | ||
|0 - 1 |16-bit sync | 175, 193 (0xc1af)| | |0 - 1 |16-bit sync | 175, 193 (0xc1af)| | ||
- | |2 |Type of packet |21 | | + | |2 |Type of packet |1 | |
|3 |Length of payload |4 | | |3 |Length of payload |4 | | ||
|4 - 5 |16-bit checksum | sum of payload bytes | | |4 - 5 |16-bit checksum | sum of payload bytes | | ||
- | |6 - 9 |32-bit result | result value | | + | |6 - 9 |32-bit result/acknowledge | result value | |
==== setLamp(upper, lower) ==== | ==== setLamp(upper, lower) ==== | ||
Line 149: | Line 149: | ||
^Byte ^Description ^Value(s) ^ | ^Byte ^Description ^Value(s) ^ | ||
|0 - 1 |16-bit sync | 175, 193 (0xc1af)| | |0 - 1 |16-bit sync | 175, 193 (0xc1af)| | ||
- | |2 |Type of packet |23 | | + | |2 |Type of packet |1 | |
|3 |Length of payload |4 | | |3 |Length of payload |4 | | ||
|4 - 5 |16-bit checksum | sum of payload bytes | | |4 - 5 |16-bit checksum | sum of payload bytes | | ||
Line 166: | Line 166: | ||
^Byte ^Description ^Value(s) ^ | ^Byte ^Description ^Value(s) ^ | ||
|0 - 1 |16-bit sync | 175, 193 (0xc1af)| | |0 - 1 |16-bit sync | 175, 193 (0xc1af)| | ||
- | |2 |Type of packet |25 | | + | |2 |Type of packet |1 | |
|3 |Length of payload |4 | | |3 |Length of payload |4 | | ||
|4 - 5 |16-bit checksum | sum of payload bytes | | |4 - 5 |16-bit checksum | sum of payload bytes | | ||
- | |6 - 9 |32-bit result | result value | | + | |6 - 9 |32-bit result | frames-per-second | |
{{page>wiki:v2:ccc-packets&noindent}} | {{page>wiki:v2:ccc-packets&noindent}} | ||
{{page>wiki:v2:line-packets&noindent}} | {{page>wiki:v2:line-packets&noindent}} | ||
{{page>wiki:v2:video-packets&noindent}} | {{page>wiki:v2:video-packets&noindent}} |