diff --git a/cnc_boosterpack_map.h b/cnc_boosterpack_map.h index f543f19..7da2b0c 100644 --- a/cnc_boosterpack_map.h +++ b/cnc_boosterpack_map.h @@ -34,6 +34,11 @@ #undef EEPROM_ENABLE #define EEPROM_ENABLE 1 +#if EEPROM_ENABLE +#undef I2C_ENABLE +#define I2C_ENABLE 1 +#endif + // Define step pulse output pins. #define STEP_PINS_BASE 2 // N_AXIS number of consecutive pins are used by PIO @@ -41,10 +46,6 @@ #define X_DIRECTION_PIN 5 #define Y_DIRECTION_PIN 6 #define Z_DIRECTION_PIN 7 -#define X_DIRECTION_BIT (1< 3 + IOInitDone = settings->version == 20; +#else IOInitDone = settings->version == 19; + #endif hal.settings_changed(settings); hal.spindle.set_state((spindle_state_t){0}, 0.0f); @@ -1413,7 +1416,7 @@ bool driver_init (void) #endif hal.info = "RP2040"; - hal.driver_version = "210726"; + hal.driver_version = "210817"; hal.driver_options = "SDK_" PICO_SDK_VERSION_STRING; #ifdef BOARD_NAME hal.board = BOARD_NAME; diff --git a/generic_map.h b/generic_map.h index 8ba0fdf..f07d80a 100644 --- a/generic_map.h +++ b/generic_map.h @@ -36,25 +36,17 @@ #define X_DIRECTION_PIN 5 #define Y_DIRECTION_PIN 6 #define Z_DIRECTION_PIN 7 -#define X_DIRECTION_BIT (1< 3 -#define A_LIMIT_PIN 3 -#define A_LIMIT_BIT (1<