Difference between revisions of "Message Format"
Jump to navigation
Jump to search
(Created page with "Messages are parsed bytewise, if the 8th bit is set it is a special CMD. == Commands == A byte is converted to the CMD opcode like this ( Byte << 1 ) & 0x7F {| class="w...") |
|||
| Line 81: | Line 81: | ||
| Type speed setting | | Type speed setting | ||
|} | |} | ||
|- | |||
| 0x1E | |||
| 1 | |||
| New line | |||
|- | |||
| 0x2A | |||
| 1 | |||
| waits | |||
|- | |||
| 0x26,0x28,0x2E | |||
| 1 | |||
| Message end | |||
|- | |||
| 0x4A | |||
| 2 | |||
| Word placeholder, inserts a word from the table at [[0x120000]] | |||
|} | |} | ||
Revision as of 10:23, 10 April 2012
Messages are parsed bytewise, if the 8th bit is set it is a special CMD.
Commands
A byte is converted to the CMD opcode like this
( Byte << 1 ) & 0x7F
| Opcode | Length (byte) | Function | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x00 | 1 | Resets the text frame | ||||||||||||
| 0x02 | 1 | Automatically resizes the text frame | ||||||||||||
| 0x04 | 6 | Text frame settings
| ||||||||||||
| 0x08 | 2 |
| ||||||||||||
| 0x0E | 2 | Control text type sound
| ||||||||||||
| 0x10 | 2 | Control text type speed
| ||||||||||||
| 0x1E | 1 | New line | ||||||||||||
| 0x2A | 1 | waits | ||||||||||||
| 0x26,0x28,0x2E | 1 | Message end | ||||||||||||
| 0x4A | 2 | Word placeholder, inserts a word from the table at 0x120000 |
Non-Command Bytes
| Value | Char |
|---|---|
| 0x20 | (space) |
| 0x3B | ü |
| 0x3C | ä |
| 0x3D | Ä |
| 0x3E | ö |
| 0x3F | Ö |
| 0x5F | ß |
| 0x60 | ? |
| 0x61 | ( |
| 0x62 | ) |
| 0x6D | ! |
| 0x6E | , |
| 0x6F | : |
| 0x76 | \ |
| 0x77 | = |
| 0x7C | - |
| 0x7F | . |
The other values are converted by adding 0x20 to them.