Quick acces Buttons - Firmware question December 22, 2014 01:46PM |
Registered: 12 years ago Posts: 62 |
Re: Quick acces Buttons - Firmware question December 22, 2014 03:27PM |
Registered: 12 years ago Posts: 2,705 |
void uiInitKeys() { UI_KEYS_INIT_BUTTON_LOW(4); // push button, connects gnd to pin UI_KEYS_INIT_BUTTON_LOW(5); UI_KEYS_INIT_BUTTON_LOW(6); UI_KEYS_INIT_BUTTON_LOW(11); UI_KEYS_INIT_BUTTON_LOW(42); } void uiCheckKeys(int &action) { UI_KEYS_BUTTON_LOW(4,UI_ACTION_OK); // push button, connects gnd to pin UI_KEYS_BUTTON_LOW(5,UI_ACTION_NEXT); // push button, connects gnd to pin UI_KEYS_BUTTON_LOW(6,UI_ACTION_PREVIOUS); // push button, connects gnd to pin UI_KEYS_BUTTON_LOW(11,UI_ACTION_BACK); // push button, connects gnd to pin UI_KEYS_BUTTON_LOW(42,UI_ACTION_SD_PRINT ); // push button, connects gnd to pin }
Re: Quick acces Buttons - Firmware question February 25, 2015 11:59AM |
Registered: 9 years ago Posts: 3 |
Re: Quick acces Buttons - Firmware question March 03, 2015 07:12AM |
Registered: 12 years ago Posts: 2,705 |