Skip to content

Example Control Code Protocol

Tom edited this page Mar 15, 2017 · 3 revisions

The control code protocol used by the SmartRC platform is an 8 bit code, with each bit representing a specific component state change.

As shown below in the following table:

Table Image

Here are some examples of control codes and the states they cause the platform to enter: Control Codes Table

The control codes, once recieved, are loaded into an array and the bits are evaluated using a switch statement.

The functions shown above are only examples and the action each bit represents can be altered in the switch statement which evaluates them, which is at the bottom of the arduino sketch.

Clone this wiki locally