Prusa3d Marlin fork
Classes | Typedefs | Functions | Variables
lcd.h File Reference

Go to the source code of this file.

Classes

class  LcdUpdateDisabler
 Helper class to temporarily disable LCD updates. More...
 

Typedefs

typedef void(* lcd_longpress_func_t) (void)
 
typedef void(* lcd_charsetup_func_t) (void)
 
typedef void(* lcd_lcdupdate_func_t) (void)
 

Functions

void lcd_init (void)
 
void lcd_refresh (void)
 
void lcd_refresh_noclear (void)
 
void lcd_clear (void)
 
void lcd_home (void)
 
void lcd_set_cursor (uint8_t col, uint8_t row)
 
void lcd_set_cursor_column (uint8_t col)
 Change the cursor column position while preserving the current row position. More...
 
void lcd_createChar_P (uint8_t, const uint8_t *)
 
int lcd_putc (char c)
 
int lcd_putc_at (uint8_t c, uint8_t r, char ch)
 
int lcd_puts_P (const char *str)
 
int lcd_puts_at_P (uint8_t c, uint8_t r, const char *str)
 
int lcd_printf_P (const char *format,...)
 
void lcd_space (uint8_t n)
 
void lcd_printNumber (unsigned long n, uint8_t base)
 
void lcd_print (const char *)
 
uint8_t lcd_print_pad (const char *s, uint8_t len)
 
uint8_t lcd_print_pad_P (const char *s, uint8_t len)
 print a string from PROGMEM with left-adjusted padding More...
 
void lcd_print (char, int=0)
 
void lcd_print (unsigned char, int=0)
 
void lcd_print (int, int=10)
 
void lcd_print (unsigned int, int=10)
 
void lcd_print (long, int=10)
 
void lcd_print (unsigned long, int=10)
 
uint8_t lcd_clicked (void)
 Was button clicked? More...
 
void lcd_beeper_quick_feedback (void)
 
void lcd_quick_feedback (void)
 
void lcd_knob_update ()
 Check whether knob is rotated or clicked and update relevant variables. Flags are set by lcd_buttons_update in ISR context.
 
void lcd_update (uint8_t lcdDrawUpdateOverride)
 
void lcd_update_enable (uint8_t enabled)
 
void lcd_buttons_update (void)
 
void lcd_frame_start ()
 
void lcd_consume_click ()
 Consume click and longpress event.
 

Variables

FILE _lcdout
 
uint8_t lcd_draw_update
 
int16_t lcd_encoder
 
uint8_t lcd_click_trigger
 
uint8_t lcd_update_enabled
 
LongTimer lcd_timeoutToStatus
 
uint32_t lcd_next_update_millis
 
lcd_longpress_func_t lcd_longpress_func
 
bool lcd_longpress_trigger
 
lcd_lcdupdate_func_t lcd_lcdupdate_func
 

Function Documentation

◆ lcd_clicked()

uint8_t lcd_clicked ( void  )

Consume click event, following call would return 0. See #LCD_CLICKED macro for version not consuming the event.

Generally is used in modal dialogs.

Return values
0not clicked
nonzeroclicked

◆ lcd_print_pad_P()

uint8_t lcd_print_pad_P ( const char *  s,
uint8_t  len 
)
Parameters
sstring from PROGMEM.
lenmaximum number of characters to print, including padding. Ranges from 0 to LCD_WIDTH.
Returns
number of padded bytes. 0 means there was no padding.

◆ lcd_set_cursor_column()

void lcd_set_cursor_column ( uint8_t  col)
Parameters
colcolumn number, ranges from 0 to LCD_WIDTH - 1