Hardware UART comms + partial v5 modules support
This commit is contained in:
parent
dfd4a99f1f
commit
fde7a90480
10 changed files with 296 additions and 120 deletions
|
|
@ -9,73 +9,78 @@ void help_setup()
|
|||
|
||||
void help(String command)
|
||||
{
|
||||
Serial.println("");
|
||||
Serial.print("Board: ");
|
||||
Serial.println(F(BOARD_STRING));
|
||||
SERIAL_PORT.println("");
|
||||
SERIAL_PORT.print("Board: ");
|
||||
SERIAL_PORT.println(F(BOARD_STRING));
|
||||
|
||||
#ifdef LIGHT_SENSOR
|
||||
#if defined ADAFRUIT_TSL2591
|
||||
Serial.println(F("Compiled with Adafruit TSL2591 support"));
|
||||
SERIAL_PORT.println(F("Compiled with Adafruit TSL2591 support"));
|
||||
#elif defined ADAFRUIT_ADS1115
|
||||
Serial.println(F("Compiled with Adafruit ADS1115 support"));
|
||||
SERIAL_PORT.println(F("Compiled with Adafruit ADS1115 support"));
|
||||
#endif
|
||||
#endif //LIGHT_SENSOR
|
||||
|
||||
|
||||
#ifdef ENDSTOPS
|
||||
#ifdef ENDSTOPS_MIN
|
||||
Serial.println(F("Compiled with min endstops support"));
|
||||
SERIAL_PORT.println(F("Compiled with min endstops support"));
|
||||
#endif
|
||||
#ifdef ENDSTOPS_MAX
|
||||
Serial.println(F("Compiled with max endstops support"));
|
||||
SERIAL_PORT.println(F("Compiled with max endstops support"));
|
||||
#endif
|
||||
#endif //ENDSTOPS
|
||||
|
||||
|
||||
Serial.println("");
|
||||
Serial.println(F("Commands (terminated by a newline character):"));
|
||||
SERIAL_PORT.println("");
|
||||
SERIAL_PORT.println(F("Commands (terminated by a newline character):"));
|
||||
#ifdef STAGE
|
||||
Serial.println(F("mrx <d> - relative move in x"));
|
||||
Serial.println(F("mry <d> - relative move in y"));
|
||||
Serial.println(F("mrz <d> - relative move in z"));
|
||||
Serial.println(F("mr <d> <d> <d> - relative move in all 3 axes"));
|
||||
Serial.println(F("release - de-energise all motors"));
|
||||
Serial.println(F("p? - print position (3 space-separated integers"));
|
||||
Serial.println(F("ramp_time <d> - set the time taken to accelerate/decelerate in us"));
|
||||
Serial.println(F("min_step_delay <d> - set the minimum time between steps in us."));
|
||||
Serial.println(F("dt <d> - set the minimum time between steps in us."));
|
||||
Serial.println(F("ramp_time? - get the time taken to accelerate/decelerate in us"));
|
||||
Serial.println(F("min_step_delay? - get the minimum time between steps in us."));
|
||||
Serial.println(F("zero - set the current position to zero."));
|
||||
Serial.println(F("stop - stop a move in progress."));
|
||||
Serial.println(F("blocking_moves? - get blocking moves enabled"));
|
||||
Serial.println(F("blocking_moves <bool> - enable/disable blocking moves"));
|
||||
Serial.println(F("moving? - check if a move is in progress"));
|
||||
Serial.println(F("notify_on_stop - respond with stopped when current move finishes"));
|
||||
SERIAL_PORT.println(F("mrx <d> - relative move in x"));
|
||||
SERIAL_PORT.println(F("mry <d> - relative move in y"));
|
||||
SERIAL_PORT.println(F("mrz <d> - relative move in z"));
|
||||
SERIAL_PORT.println(F("mr <d> <d> <d> - relative move in all 3 axes"));
|
||||
SERIAL_PORT.println(F("release - de-energise all motors"));
|
||||
SERIAL_PORT.println(F("p? - print position (3 space-separated integers"));
|
||||
SERIAL_PORT.println(F("ramp_time <d> - set the time taken to accelerate/decelerate in us"));
|
||||
SERIAL_PORT.println(F("min_step_delay <d> - set the minimum time between steps in us."));
|
||||
SERIAL_PORT.println(F("dt <d> - set the minimum time between steps in us."));
|
||||
SERIAL_PORT.println(F("ramp_time? - get the time taken to accelerate/decelerate in us"));
|
||||
SERIAL_PORT.println(F("min_step_delay? - get the minimum time between steps in us."));
|
||||
SERIAL_PORT.println(F("zero - set the current position to zero."));
|
||||
SERIAL_PORT.println(F("stop - stop a move in progress."));
|
||||
SERIAL_PORT.println(F("blocking_moves? - get blocking moves enabled"));
|
||||
SERIAL_PORT.println(F("blocking_moves <bool> - enable/disable blocking moves"));
|
||||
SERIAL_PORT.println(F("moving? - check if a move is in progress"));
|
||||
SERIAL_PORT.println(F("notify_on_stop - respond with stopped when current move finishes"));
|
||||
#endif //STAGE
|
||||
|
||||
#ifdef LIGHT_SENSOR
|
||||
Serial.println(F("light_sensor_gain <d> - set the gain of the light sensor"));
|
||||
Serial.println(F("light_sensor_gain? - get the gain of the light sensor"));
|
||||
Serial.println(F("light_sensor_gain_values? - get the allowable gain values of the light sensor"));
|
||||
Serial.println(F("light_sensor_integration_time? - get the integration time in milliseconds"));
|
||||
Serial.println(F("light_sensor_intensity? - read the current value from the full spectrum diode"));
|
||||
SERIAL_PORT.println(F("light_sensor_gain <d> - set the gain of the light sensor"));
|
||||
SERIAL_PORT.println(F("light_sensor_gain? - get the gain of the light sensor"));
|
||||
SERIAL_PORT.println(F("light_sensor_gain_values? - get the allowable gain values of the light sensor"));
|
||||
SERIAL_PORT.println(F("light_sensor_integration_time? - get the integration time in milliseconds"));
|
||||
SERIAL_PORT.println(F("light_sensor_intensity? - read the current value from the full spectrum diode"));
|
||||
#endif //LIGHT_SENSOR
|
||||
|
||||
#if defined(ENDSTOPS_MIN) || defined(ENDSTOPS_MAX)
|
||||
Serial.println(F("endstops? - get triggered endstops in (1,0,-1) format for max, none, min"));
|
||||
Serial.println(F("home_min <axes?> - home given (00000zyx byte, e.g. 1 for x) or all axes to their min position"));
|
||||
Serial.println(F("home_max <axes?> - home given (00000zyx byte, e.g. 3 for x and y) or all axes to their max position"));
|
||||
Serial.println(F("max_p? - return positions of max endstops"));
|
||||
Serial.println(F("max <d> <d> <d> - set maximum positions"));
|
||||
SERIAL_PORT.println(F("endstops? - get triggered endstops in (1,0,-1) format for max, none, min"));
|
||||
SERIAL_PORT.println(F("home_min <axes?> - home given (00000zyx byte, e.g. 1 for x) or all axes to their min position"));
|
||||
SERIAL_PORT.println(F("home_max <axes?> - home given (00000zyx byte, e.g. 3 for x and y) or all axes to their max position"));
|
||||
SERIAL_PORT.println(F("max_p? - return positions of max endstops"));
|
||||
SERIAL_PORT.println(F("max <d> <d> <d> - set maximum positions"));
|
||||
#endif
|
||||
|
||||
//Serial.println(F("test_mode <s> - set test_mode <on> <off>"));
|
||||
Serial.println(F("version - get firmware version string"));
|
||||
Serial.println("");
|
||||
Serial.println("Input Key:");
|
||||
Serial.println(F("<d> - a decimal integer."));
|
||||
Serial.println("");
|
||||
Serial.println("--END--");
|
||||
#ifdef STEPSTICK
|
||||
SERIAL_PORT.println(F("stepstick_move <f> <d> - move stepper by <d> with max speed <f>"));
|
||||
SERIAL_PORT.println(F("stepstick_release - release stepstick stepper"));
|
||||
SERIAL_PORT.println(F("stepstick_stop - abort stepstick move"));
|
||||
#endif
|
||||
//SERIAL_PORT.println(F("test_mode <s> - set test_mode <on> <off>"));
|
||||
SERIAL_PORT.println(F("version - get firmware version string"));
|
||||
SERIAL_PORT.println("");
|
||||
SERIAL_PORT.println("Input Key:");
|
||||
SERIAL_PORT.println(F("<d> - a decimal integer."));
|
||||
SERIAL_PORT.println("");
|
||||
SERIAL_PORT.println("--END--");
|
||||
}
|
||||
#endif //HELP
|
||||
Loading…
Add table
Add a link
Reference in a new issue