Make audible user script feedback optional
Add a parameter to enable/disable audible user script feedback
This commit is contained in:
parent
ce65c13a97
commit
24af9e1bf4
28 changed files with 30 additions and 1 deletions
|
@ -1262,6 +1262,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1255,6 +1255,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1262,6 +1262,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1262,6 +1262,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1255,6 +1255,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1238,6 +1238,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1255,6 +1255,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1255,6 +1255,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1255,6 +1255,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1268,6 +1268,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1251,6 +1251,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1262,6 +1262,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1255,6 +1255,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1255,6 +1255,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1258,6 +1258,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1268,6 +1268,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1255,6 +1255,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1260,6 +1260,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1259,6 +1259,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1257,6 +1257,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1257,6 +1257,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1262,6 +1262,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1257,6 +1257,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1264,6 +1264,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1255,6 +1255,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1255,6 +1255,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -1262,6 +1262,7 @@
|
||||||
//#define CUSTOM_USER_MENUS
|
//#define CUSTOM_USER_MENUS
|
||||||
#if ENABLED(CUSTOM_USER_MENUS)
|
#if ENABLED(CUSTOM_USER_MENUS)
|
||||||
#define USER_SCRIPT_DONE "M117 User Script Done"
|
#define USER_SCRIPT_DONE "M117 User Script Done"
|
||||||
|
#define USER_SCRIPT_AUDIBLE_FEEDBACK
|
||||||
|
|
||||||
#define USER_DESC_1 "Home & UBL Info"
|
#define USER_DESC_1 "Home & UBL Info"
|
||||||
#define USER_GCODE_1 "G28\nG29 W"
|
#define USER_GCODE_1 "G28\nG29 W"
|
||||||
|
|
|
@ -836,7 +836,9 @@ void kill_screen(const char* lcd_msg) {
|
||||||
|
|
||||||
void _lcd_user_gcode(const char * const cmd) {
|
void _lcd_user_gcode(const char * const cmd) {
|
||||||
enqueue_and_echo_commands_P(cmd);
|
enqueue_and_echo_commands_P(cmd);
|
||||||
lcd_completion_feedback();
|
#if ENABLED(USER_SCRIPT_AUDIBLE_FEEDBACK)
|
||||||
|
lcd_completion_feedback();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(USER_DESC_1) && defined(USER_GCODE_1)
|
#if defined(USER_DESC_1) && defined(USER_GCODE_1)
|
||||||
|
|
Reference in a new issue