Added a light-weight status screen for the ST7920
- The status screen uses the ST7920 character generator to greatly reduce SPI traffic and MCU load when updating the status screen. - Has been tested with the RepRapDiscount Full Graphics Smart Controller but should work with any LCD that uses an ST7920 or fully compatible controller.
This commit is contained in:
committed by
Scott Lahteine
parent
a6563df705
commit
24eb275b99
@ -1513,7 +1513,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1513,7 +1513,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1661,9 +1661,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// Note: Details on connecting to the Anet V1.0 controller are in the file pins_ANET_10.h
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1516,6 +1516,7 @@
|
||||
//
|
||||
//#define G3D_PANEL
|
||||
|
||||
|
||||
//
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
@ -1524,6 +1525,18 @@
|
||||
//
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
// controller and SD support - http://reprap.org/wiki/Mini_panel
|
||||
|
@ -1513,7 +1513,18 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1513,7 +1513,18 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1519,7 +1519,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1517,7 +1517,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1524,7 +1524,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1515,6 +1515,18 @@
|
||||
//
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
// controller and SD support - http://reprap.org/wiki/Mini_panel
|
||||
|
@ -1516,7 +1516,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1544,7 +1544,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1498,7 +1498,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1513,7 +1513,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1546,7 +1546,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1513,7 +1513,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1507,7 +1507,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1637,7 +1637,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1527,7 +1527,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
@ -1516,7 +1516,18 @@
|
||||
// RepRapDiscount FULL GRAPHIC Smart Controller
|
||||
// http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
|
||||
//
|
||||
// If USE_ST7920_LIGHTWEIGHT_UI is uncommented, then an alternative
|
||||
// light-weight status screen will be used that takes advantage of
|
||||
// the ST7920 character-generator to conserve MCU resources.
|
||||
//
|
||||
// Since the lightweight status screen can only show a status
|
||||
// message or the position, but not both, set DELAY_TO_SHOW_POSITION
|
||||
// to the number of seconds until the position is revealed after a new
|
||||
// status message is drawn.
|
||||
|
||||
//#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||
//#define USE_ST7920_LIGHTWEIGHT_UI
|
||||
//#define DELAY_TO_SHOW_POSITION 20
|
||||
|
||||
//
|
||||
// MakerLab Mini Panel with graphic
|
||||
|
Reference in New Issue
Block a user