Browse Source

When STATUS_EXPIRE_SECONDS is 0, hide the position. (#10081)

Some users may prefer to hide the position updates on the `LIGHTWEIGHT_UI` altogether. This leads to an even less cluttered display (it also saves on SPI traffic and one byte of RAM).
pull/1/head
Marcio Teixeira 7 years ago
committed by Scott Lahteine
parent
commit
c24dbcbfe1
  1. 3
      Marlin/Configuration_adv.h
  2. 3
      Marlin/src/config/default/Configuration_adv.h
  3. 3
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
  4. 3
      Marlin/src/config/examples/Anet/A6/Configuration_adv.h
  5. 3
      Marlin/src/config/examples/Anet/A8/Configuration_adv.h
  6. 3
      Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h
  7. 3
      Marlin/src/config/examples/BIBO/TouchX/Configuration_adv.h
  8. 3
      Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
  9. 3
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
  10. 3
      Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
  11. 3
      Marlin/src/config/examples/Cartesio/Configuration_adv.h
  12. 3
      Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h
  13. 3
      Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h
  14. 3
      Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h
  15. 3
      Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h
  16. 3
      Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h
  17. 3
      Marlin/src/config/examples/Felix/Configuration_adv.h
  18. 3
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h
  19. 3
      Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
  20. 3
      Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h
  21. 3
      Marlin/src/config/examples/MakerParts/Configuration_adv.h
  22. 3
      Marlin/src/config/examples/Malyan/M150/Configuration_adv.h
  23. 3
      Marlin/src/config/examples/Malyan/M200/Configuration_adv.h
  24. 3
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h
  25. 3
      Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h
  26. 3
      Marlin/src/config/examples/RigidBot/Configuration_adv.h
  27. 3
      Marlin/src/config/examples/SCARA/Configuration_adv.h
  28. 3
      Marlin/src/config/examples/Sanguinololu/Configuration_adv.h
  29. 3
      Marlin/src/config/examples/TheBorg/Configuration_adv.h
  30. 3
      Marlin/src/config/examples/TinyBoy2/Configuration_adv.h
  31. 3
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h
  32. 3
      Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h
  33. 3
      Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h
  34. 3
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  35. 3
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  36. 3
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h
  37. 3
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  38. 3
      Marlin/src/config/examples/delta/generic/Configuration_adv.h
  39. 3
      Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h
  40. 3
      Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h
  41. 3
      Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h
  42. 3
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h
  43. 3
      Marlin/src/config/examples/makibox/Configuration_adv.h
  44. 3
      Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h
  45. 3
      Marlin/src/config/examples/wt150/Configuration_adv.h
  46. 82
      Marlin/src/lcd/dogm/status_screen_lite_ST7920.h

3
Marlin/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/default/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Anet/A6/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Anet/A8/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/BIBO/TouchX/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Cartesio/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Felix/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/MakerParts/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Malyan/M200/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h

@ -673,6 +673,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/RigidBot/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/SCARA/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/TheBorg/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h

@ -678,6 +678,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h

@ -667,6 +667,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h

@ -667,6 +667,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h

@ -667,6 +667,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h

@ -667,6 +667,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/delta/generic/Configuration_adv.h

@ -667,6 +667,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h

@ -667,6 +667,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h

@ -672,6 +672,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h

@ -667,6 +667,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/makibox/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h

@ -665,6 +665,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

3
Marlin/src/config/examples/wt150/Configuration_adv.h

@ -666,6 +666,9 @@
* Since LIGHTWEIGHT_UI has limited space, the position and status
* message occupy the same line. Set STATUS_EXPIRE_SECONDS to the
* length of time to display the status message before clearing.
*
* Set STATUS_EXPIRE_SECONDS to zero to never clear the status.
* This will prevent position updates from being displayed.
*/
//#define LIGHTWEIGHT_UI
#if ENABLED(LIGHTWEIGHT_UI)

82
Marlin/src/lcd/dogm/status_screen_lite_ST7920.h

@ -622,7 +622,7 @@ void ST7920_Lite_Status_Screen::draw_status_message(const char *str) {
// Trim whitespace at the end of the str, as for some reason
// messages like "Card Inserted" are padded with many spaces
while (str_len > 0 && str[str_len - 1] == ' ') str_len--;
while (str_len && str[str_len - 1] == ' ') str_len--;
if (str_len <= lcd_len) {
// It all fits on the LCD without scrolling
@ -765,8 +765,15 @@ bool ST7920_Lite_Status_Screen::blink_changed() {
return true;
}
#ifndef STATUS_EXPIRE_SECONDS
#define STATUS_EXPIRE_SECONDS 20
#endif
void ST7920_Lite_Status_Screen::update_status_or_position(bool forceUpdate) {
static uint8_t countdown = 0;
#if STATUS_EXPIRE_SECONDS
static uint8_t countdown = 0;
#endif
/**
* There is only enough room in the display for either the
@ -779,51 +786,60 @@ void ST7920_Lite_Status_Screen::update_status_or_position(bool forceUpdate) {
* countdown > 1 -- Show status
* countdown = 1 -- Show status, until movement
* countdown = 0 -- Show position
*
* If STATUS_EXPIRE_SECONDS is zero, the position display
* will be disabled and only the status will be shown.
*/
if (forceUpdate || status_changed()) {
#if ENABLED(STATUS_MESSAGE_SCROLLING)
status_scroll_pos = 0;
#endif
#ifndef STATUS_EXPIRE_SECONDS
#define STATUS_EXPIRE_SECONDS 20
#if STATUS_EXPIRE_SECONDS
countdown = lcd_status_message[0] ? STATUS_EXPIRE_SECONDS : 0;
#endif
countdown = lcd_strlen(lcd_status_message) ? STATUS_EXPIRE_SECONDS : 0;
draw_status_message(lcd_status_message);
blink_changed(); // Clear changed flag
}
else if (countdown > 1 && blink_changed()) {
countdown--;
#if !STATUS_EXPIRE_SECONDS
#if ENABLED(STATUS_MESSAGE_SCROLLING)
draw_status_message(lcd_status_message);
else
draw_status_message(lcd_status_message);
#endif
}
else if (countdown > 0 && blink_changed()) {
if (position_changed()) {
#else
else if (countdown > 1 && blink_changed()) {
countdown--;
forceUpdate = true;
#if ENABLED(STATUS_MESSAGE_SCROLLING)
draw_status_message(lcd_status_message);
#endif
}
#if ENABLED(STATUS_MESSAGE_SCROLLING)
draw_status_message(lcd_status_message);
#endif
}
if (countdown == 0 && (forceUpdate || position_changed() ||
#if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING)
blink_changed()
#endif
)) {
draw_position(
current_position[X_AXIS],
current_position[Y_AXIS],
current_position[Z_AXIS],
#if ENABLED(DISABLE_REDUCED_ACCURACY_WARNING)
true
#else
axis_known_position[X_AXIS] &&
axis_known_position[Y_AXIS] &&
axis_known_position[Z_AXIS]
else if (countdown > 0 && blink_changed()) {
if (position_changed()) {
countdown--;
forceUpdate = true;
}
#if ENABLED(STATUS_MESSAGE_SCROLLING)
draw_status_message(lcd_status_message);
#endif
);
}
}
if (countdown == 0 && (forceUpdate || position_changed() ||
#if DISABLED(DISABLE_REDUCED_ACCURACY_WARNING)
blink_changed()
#endif
)) {
draw_position(
current_position[X_AXIS],
current_position[Y_AXIS],
current_position[Z_AXIS],
#if ENABLED(DISABLE_REDUCED_ACCURACY_WARNING)
true
#else
axis_known_position[X_AXIS] &&
axis_known_position[Y_AXIS] &&
axis_known_position[Z_AXIS]
#endif
);
}
#endif
}
void ST7920_Lite_Status_Screen::update_progress(const bool forceUpdate) {

Loading…
Cancel
Save