Skip to content

Instantly share code, notes, and snippets.

View abc123me's full-sized avatar

Jeremiah Lowe abc123me

View GitHub Profile

LED Matrix TCP protocol

Command structure

A command is at most 8 bytes long and comprised of the following (in order)

  1. Single byte header
  2. Variable amount of arguments

Command sequencing

Multiple commands can be sequenced into one packet and they will be executed one by one. To use the faster method of putting multiple commands in one TCP packet they must be ordered sequentially and each command must be 8 bytes long.

Doing this wil configuration and graphics calls is recommended however you should not do this with query calls since the result of a query call has a 1/255 chance of being 0, and that will count as an error, causing all execution to stop