From e8a22010305f11bbf2b89605ce03eb7b260450fb Mon Sep 17 00:00:00 2001 From: bdring Date: Sun, 27 Oct 2019 15:07:25 -0500 Subject: [PATCH] Added gcode comment message handling to SD card reader and cleanup - Gcode comment messages on SD cards will now print on all interfaces. - Moved cpu map for Atarti 1020 to its header file as a test of way to reduce cpu_map.h a bit. --- Grbl_Esp32/atari_1020.h | 110 ++++++++++++++++++++++++++++++++++++++++ Grbl_Esp32/cpu_map.h | 110 +--------------------------------------- Grbl_Esp32/grbl_sd.cpp | 14 +++-- 3 files changed, 122 insertions(+), 112 deletions(-) diff --git a/Grbl_Esp32/atari_1020.h b/Grbl_Esp32/atari_1020.h index b0dcf80b..94c0af96 100644 --- a/Grbl_Esp32/atari_1020.h +++ b/Grbl_Esp32/atari_1020.h @@ -22,6 +22,116 @@ Atari 1010 Pen Plotter */ +#define CPU_MAP_NAME "CPU_MAP_ATARI_1020" + +// ================== CPU MAP ====================== + #define USE_UNIPOLAR + + #define X_UNIPOLAR + #define X_PIN_PHASE_0 GPIO_NUM_13 + #define X_PIN_PHASE_1 GPIO_NUM_21 + #define X_PIN_PHASE_2 GPIO_NUM_16 + #define X_PIN_PHASE_3 GPIO_NUM_22 + + #define Y_UNIPOLAR + #define Y_PIN_PHASE_0 GPIO_NUM_25 + #define Y_PIN_PHASE_1 GPIO_NUM_27 + #define Y_PIN_PHASE_2 GPIO_NUM_26 + #define Y_PIN_PHASE_3 GPIO_NUM_32 + + + #define SOLENOID_DIRECTION_PIN GPIO_NUM_4 + #define SOLENOID_PEN_PIN GPIO_NUM_2 + #define SOLENOID_CHANNEL_NUM 6 + + #ifdef HOMING_CYCLE_0 + #undef HOMING_CYCLE_0 + #endif + #define HOMING_CYCLE_0 (1<