Repetier, Hello!
I get lost in the button configuration (uiconfig.h). I want to map the pin to my hardware, how to set up it?( Hardware:GEN7+I2C BUS+ MCP23017 PB0-PB7 connection with eight buttons)
there are part of your firmware,I am not know clear.:S
void ui_check_keys (int & action) {
# if UI_HAS_KEYS! = 0
/ / UI_KEYS_CLICKENCODER_LOW_REV (33,31); / / click encoder on pins 47 and 45. Phase is connected with gnd for signals.
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
/ / UI_KEYS_CLICKENCODER_LOW_REV (47,45); / / click encoder on pins 47 and 45. Phase is connected with gnd for signals.
/ / UI_KEYS_BUTTON_LOW (43, UI_ACTION_OK); / / push button, connects gnd to pin
# endif
}
Best Regards
Pan Xinlong
I get lost in the button configuration (uiconfig.h). I want to map the pin to my hardware, how to set up it?( Hardware:GEN7+I2C BUS+ MCP23017 PB0-PB7 connection with eight buttons)
there are part of your firmware,I am not know clear.:S
void ui_check_keys (int & action) {
# if UI_HAS_KEYS! = 0
/ / UI_KEYS_CLICKENCODER_LOW_REV (33,31); / / click encoder on pins 47 and 45. Phase is connected with gnd for signals.
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
/ / UI_KEYS_CLICKENCODER_LOW_REV (47,45); / / click encoder on pins 47 and 45. Phase is connected with gnd for signals.
/ / UI_KEYS_BUTTON_LOW (43, UI_ACTION_OK); / / push button, connects gnd to pin
# endif
}
Best Regards
Pan Xinlong