I'm printing from SD. The encoder works great, the display and the SD too. When the print finishes the rotary action of encoder stop working but the button works fine. If I reset the board it start to work again. I dont know if it's a bug in the firmware or a configuration problem. I didn't found anything similar in the forum or github.
I'm using the firmware 1.0.0 generated with the Configuration Tool web and modified the settings for display, encoder and buttons.
This is part of my uiconfig.h
void uiInitKeys() {
#if UI_HAS_KEYS!=0
UI_KEYS_INIT_CLICKENCODER_LOW(31,33); // click encoder on pins 31 and 33. Phase is connected with gnd for signals.
UI_KEYS_INIT_BUTTON_LOW(35); // push button, connects gnd to pin
UI_KEYS_INIT_BUTTON_LOW(41); // push button, connects gnd to pin
#endif
}
void uiCheckKeys(uint16_t &action) {
#if UI_HAS_KEYS!=0
UI_KEYS_CLICKENCODER_LOW_REV(31,33); // click encoder on pins 31 and 33. Phase is connected with gnd for signals.
UI_KEYS_BUTTON_LOW(35,UI_ACTION_OK); // push button, connects gnd to pin
UI_KEYS_BUTTON_LOW(41,UI_ACTION_EMERGENCY_STOP); // push button, connects gnd to pin
#endif
}
Thanks!