So I'm making progress finally. One line with the WT, working on merging the MPU 6050 code into the design.. but I have what's probably a dumb question:
How the heck do you make a menu work for this? like?? I've been racking my brain.. and I just can't seem to get it.
A menu would require a few things.
1. A way to load and save your configuration (EEPROM)
2. A way to enter config mode. ex. long press aux button or remove kill key with a button held down, etc, etc.
3. A way to navigate the menu once in config mode. This can be done with a counter variable and a switch statement, using main and aux button as navigation buttons and long press for confirm.
if( configMode ) //check to see if we are in config mode.
{
int buttonResult = CheckButtons(); //checks your buttons to see if you up, down or confirm was pressed.
switch( menuItem )
{
case 1: //handle the button press.
}
}
just a very simple example, could be done countless of ways.