diff --git a/pan_tilt_mount_nano_code_tmc2208/panTiltMount.cpp b/pan_tilt_mount_nano_code_tmc2208/panTiltMount.cpp index 7219e1d..6a05f1b 100644 --- a/pan_tilt_mount_nano_code_tmc2208/panTiltMount.cpp +++ b/pan_tilt_mount_nano_code_tmc2208/panTiltMount.cpp @@ -1206,10 +1206,15 @@ void serialData(void){ /*--------------------------------------------------------------------------------------------------------------------------------------------------------*/ void mainLoop(void){ - while(1){ - if(Serial.available()) serialData(); - multi_stepper.run(); - } +// while(1){ +// if(Serial.available()) serialData(); +// multi_stepper.run(); +// } + + printi(F("Pan Hall: "), digitalRead(PIN_PAN_HALL)); + printi(F("Tilt Hall: "), digitalRead(PIN_TILT_HALL)); + printi(F("Slider Hall: "), digitalRead(PIN_SLIDER_HALL), "\n\n"); + delay(200); } /*--------------------------------------------------------------------------------------------------------------------------------------------------------*/ diff --git a/pan_tilt_mount_nano_code_tmc2208/panTiltMount.h b/pan_tilt_mount_nano_code_tmc2208/panTiltMount.h index 22d1fb9..5426b3f 100644 --- a/pan_tilt_mount_nano_code_tmc2208/panTiltMount.h +++ b/pan_tilt_mount_nano_code_tmc2208/panTiltMount.h @@ -96,7 +96,8 @@ #define EEPROM_ADDRESS_TILT_ACCEL_INCREMENT_DELAY 82 #define EEPROM_ADDRESS_SLIDER_ACCEL_INCREMENT_DELAY 84 -#define VERSION_NUMBER "Version: 3.11.2\n" +//#define VERSION_NUMBER "Version: 3.11.2\n" +#define VERSION_NUMBER "Version: Hall 1.0.0\n" /*------------------------------------------------------------------------------------------------------------------------------------------------------*/ diff --git a/pan_tilt_mount_nano_code_tmc2208/pan_tilt_mount_nano_code_tmc2208.ino b/pan_tilt_mount_nano_code_tmc2208/pan_tilt_mount_nano_code_tmc2208.ino index f3426f9..324a3e0 100644 --- a/pan_tilt_mount_nano_code_tmc2208/pan_tilt_mount_nano_code_tmc2208.ino +++ b/pan_tilt_mount_nano_code_tmc2208/pan_tilt_mount_nano_code_tmc2208.ino @@ -18,7 +18,7 @@ * * Code written by isaac879 * - * Last modified: 03/11/2020 + * Last modified: 24/10/2021 * *--------------------------------------------------------------------------------------------------------------------------------------------------------*/