diff --git a/Grbl_Esp32/config.h b/Grbl_Esp32/config.h index 443d8445..057affb7 100644 --- a/Grbl_Esp32/config.h +++ b/Grbl_Esp32/config.h @@ -46,7 +46,7 @@ Some features should not be changed. See notes below. // one configuration file by placing their specific defaults and pin map at the bottom of this file. // If doing so, simply comment out these two defines and see instructions below. #define DEFAULTS_GENERIC -#define CPU_MAP_FOO_6X // these are defined in cpu_map.h +#define CPU_MAP_ESP32 // these are defined in cpu_map.h #define VERBOSE_HELP // adds addition help info, but could confuse some senders diff --git a/Grbl_Esp32/cpu_map.h b/Grbl_Esp32/cpu_map.h index f662789a..a388264a 100644 --- a/Grbl_Esp32/cpu_map.h +++ b/Grbl_Esp32/cpu_map.h @@ -35,14 +35,14 @@ with AVR grbl */ - -//Set your pine definition + +//Set your pin definition //let -1 to use default board pin #define GRBL_SPI_SS -1 #define GRBL_SPI_MOSI -1 #define GRBL_SPI_MISO -1 #define GRBL_SPI_SCK -1 -//Set you frequency +//Set your frequency #define GRBL_SPI_FREQ 4000000 #ifdef CPU_MAP_ESP32 @@ -717,7 +717,7 @@ #endif #ifdef CPU_MAP_SM // String art machine definition - + #define CPU_MAP_NAME "CPU_MAP_SM" #define X_STEP_PIN GPIO_NUM_12 #define X_DIRECTION_PIN GPIO_NUM_26 @@ -1152,12 +1152,13 @@ #ifdef CPU_MAP_FOO_6X #define CPU_MAP_NAME "CPU_MAP_FOO_6X" - - /* + /* #define USE_KINEMATICS #include "kinematics.h" */ + // Be sure to change to N_AXIS 6 in nuts_bolts.h + // stepper motors #define USE_RMT_STEPS diff --git a/Grbl_Esp32/nuts_bolts.h b/Grbl_Esp32/nuts_bolts.h index c60c749b..81b018f2 100644 --- a/Grbl_Esp32/nuts_bolts.h +++ b/Grbl_Esp32/nuts_bolts.h @@ -29,7 +29,7 @@ // Axis array index values. Must start with 0 and be continuous. // Note: You set the number of axes used by changing N_AXIS. // Be sure to define pins or servos in cpu_map.h -#define N_AXIS 6 // Number of axes defined +#define N_AXIS 3 // Number of axes defined #define X_AXIS 0 // Axis indexing value. #define Y_AXIS 1 #define Z_AXIS 2