Rotary Encoder Box Documentation: The Hardware Components and Features
Rotary Encoder Box Documentation: The Hardware Components and Features
See the source code comments for additional info and examples.
Remember there are four encoders to a page. To leave a slot empty, use the
EC_RESERVED tag.
Managing Profiles
You’ll need to (1) add a structure for the new profile, and (2) add the name of the new
structure in the database. Here again, is an example from the Configuration.h file:
1. The definition below—an array of encoders, constitutes a profile, since it defines all
its encoders in all the pages:
const sEncoderDef ENC_ZIBO{} =
{
EC_SINGLE_LONG, ELI_Airspeed,
EC_SINGLE_LONG, ELI_Heading,
… … … …
ENC_TRAILER
};
2. The definition below gives the profile a name, allowing it to appear and be selectable
in the Rotary Box Settings UI.
const sProfile profiles[] =
{
"Zibo B738", ENC_ZIBO,
… … … …
"" // End marker
};