-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ADAFRUIT_ST7565 #2105
ADAFRUIT_ST7565 #2105
Changes from 3 commits
41f8cdb
1999ac4
047e688
a83bf18
ca8d175
152b681
082ed3b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -660,6 +660,10 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic | |
//#define VIKI2 | ||
//#define miniVIKI | ||
|
||
// This is a new controller currently under development. A link to more information will be provided as it | ||
// becomes available. | ||
//#define ELB_FULL_GRAPHIC_CONTROLLER | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Propagate these changes to the rest of the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What changes are you referring to? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I forget that line notes aren't always displayed with the lines they refer to. |
||
// The RepRapDiscount Smart Controller (white PCB) | ||
// http://reprap.org/wiki/RepRapDiscount_Smart_Controller | ||
//#define REPRAP_DISCOUNT_SMART_CONTROLLER | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1110,13 +1110,23 @@ static void lcd_control_volumetric_menu() { | |
#ifdef HAS_LCD_CONTRAST | ||
static void lcd_set_contrast() { | ||
if (encoderPosition != 0) { | ||
#ifdef ELB_FULL_GRAPHIC_CONTROLLER | ||
lcd_contrast += encoderPosition; | ||
lcd_contrast &= 0xFF; | ||
#else | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor syntactical thing. Compiler directives should be part of the cascade too. This is so that naïve text editors can do code folding properly. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So what is it you are suggesting that should be changed here? |
||
lcd_contrast -= encoderPosition; | ||
lcd_contrast &= 0x3F; | ||
#endif | ||
encoderPosition = 0; | ||
lcdDrawUpdate = 1; | ||
u8g.setContrast(lcd_contrast); | ||
} | ||
if (lcdDrawUpdate) lcd_implementation_drawedit(PSTR(MSG_CONTRAST), itostr2(lcd_contrast)); | ||
if (lcdDrawUpdate) | ||
#ifdef ELB_FULL_GRAPHIC_CONTROLLER | ||
lcd_implementation_drawedit(PSTR(MSG_CONTRAST), itostr3(lcd_contrast)); | ||
#else | ||
lcd_implementation_drawedit(PSTR(MSG_CONTRAST), itostr2(lcd_contrast)); | ||
#endif | ||
if (LCD_CLICKED) lcd_goto_menu(lcd_control_menu); | ||
} | ||
#endif // HAS_LCD_CONTRAST | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When will it be available?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about right now? I just updated Configuration.h with the link.