Hey,
i get it. I defined that one in the ui.h:
#else // RAMPS
....
....
....
#ifdef UI_MAIN
void uiInitKeys() {
UI_KEYS_INIT_CLICKENCODER_LOW(UI_ENCODER_A, UI_ENCODER_B); // click encoder on pins 47 and 45. Phase is connected with gnd for signals.
UI_KEYS_INIT_BUTTON_LOW(UI_ENCODER_CLICK); // pushbutton, connects gnd to pin
// Keypad, connect 5V to Pin x Pin 11, 57, 58 are empty
UI_KEYS_INIT_BUTTON_LOW(0); // Zero all
UI_KEYS_INIT_BUTTON_LOW(1); // Zero Z
UI_KEYS_INIT_BUTTON_LOW(4); // slow X
UI_KEYS_INIT_BUTTON_LOW(5); // slow Y
UI_KEYS_INIT_BUTTON_LOW(6); // Babysteps Z
UI_KEYS_INIT_BUTTON_LOW(63); // Left
UI_KEYS_INIT_BUTTON_LOW(59); // Right
UI_KEYS_INIT_BUTTON_LOW(40); // forward
UI_KEYS_INIT_BUTTON_LOW(64); // backward
UI_KEYS_INIT_BUTTON_LOW(42); // up
UI_KEYS_INIT_BUTTON_LOW(44); // down
UI_KEYS_INIT_BUTTON_LOW(65); // Home all
// UI_KEYS_INIT_BUTTON_LOW(66); // Emergency stop / Or disconnect current??
#if UI_RESET_PIN > -1
UI_KEYS_INIT_BUTTON_LOW(UI_RESET_PIN); // Kill pin
#endif
}
void uiCheckKeys(uint16_t &action) {
#if FEATURE_CONTROLLER == CONTROLLER_BAM_DICE_DUE
UI_KEYS_CLICKENCODER_LOW_REV(UI_ENCODER_B, UI_ENCODER_A); // click encoder on pins 47 and 45. Phase is connected with gnd for signals.
#else
UI_KEYS_CLICKENCODER_LOW_REV(UI_ENCODER_A, UI_ENCODER_B); // click encoder on pins 47 and 45. Phase is connected with gnd for signals.
#endif
UI_KEYS_BUTTON_LOW(UI_ENCODER_CLICK, UI_ACTION_OK); // push button, connects gnd to pin
// Keypad, puch button, connects 5V to pin
UI_KEYS_BUTTON_LOW(0,UI_ACTION_SET_ORIGIN); // Zero all
UI_KEYS_BUTTON_LOW(1,UI_ACTION_SET_Z_ORIGIN_BUTTON); // Zero Z
UI_KEYS_BUTTON_LOW(4,UI_ACTION_XPOSITION); // slow
UI_KEYS_BUTTON_LOW(5,UI_ACTION_YPOSITION); // slow
UI_KEYS_BUTTON_LOW(6,UI_ACTION_Z_BABYSTEPS); // slow
UI_KEYS_BUTTON_LOW(63,UI_ACTION_Y_UP); // Left
UI_KEYS_BUTTON_LOW(59,UI_ACTION_Y_DOWN); // Right
UI_KEYS_BUTTON_LOW(40,UI_ACTION_X_UP); // forward
UI_KEYS_BUTTON_LOW(64,UI_ACTION_X_DOWN); // backward
UI_KEYS_BUTTON_LOW(42,UI_ACTION_Z_UP); // up
UI_KEYS_BUTTON_LOW(44,UI_ACTION_Z_DOWN); // down
UI_KEYS_BUTTON_LOW(65,UI_ACTION_HOME_ALL); // Home all
// UI_KEYS_BUTTON_LOW(66,UI_ACTION_EMERGENCY_STOP); // Emergency stop / Or disconnect current??
#if UI_RESET_PIN > -1
Should i copy that in the uiconfig.h? If yes what i should copy?
Another question:
At the moment it drive 1mm and stops. Then it drives 1mm and stops (so lang as i press the button) is there
a possibility to "smooth" that?
With which Action i will only drive 0.1 mm or less? (Can i set a command or G code to switch in a "slow" mode)