fremoclock  1_3A01
FREMO Clock - Software for UTG
lcd.h File Reference

LCD interface header file. More...

Go to the source code of this file.

Enumerations

enum  lcdDisplayMode_t {
  LCD_DISP_OFF = 0x08, LCD_DISP_ON = 0x0C, LCD_DISP_ON_BLINK = 0x0D, LCD_DISP_ON_CURSOR = 0x0E,
  LCD_DISP_ON_CURSOR_BLINK = 0x0F
}
 display on/off, cursor on/off, blinking char at cursor position More...
 

Functions

void lcd_clear (void)
 Clear and home the LCD. More...
 
void lcd_puts (const char *s)
 Write a string of characters to the LCD. More...
 
void lcd_puts_P (const char *s)
 Write a string from progmem of chars to the LCD. More...
 
void lcd_goto (uint8_t x, uint8_t y)
 Go to the specified position. More...
 
void lcd_clrxy (uint8_t x, uint8_t y, uint8_t count)
 Clear count characters starting at position (x,y). More...
 
void lcd_putc (char c)
 Write a character to the LCD. More...
 
void lcd_word (uint16_t value, uint8_t width)
 Write numeric value to the LCD. More...
 
void lcd_init (lcdDisplayMode_t dispAttr)
 Initialize the LCD - call before anything else. More...
 

Detailed Description

LCD interface header file.

See lcd.c for more info. Modified by Alex Shepherd to be compatible with previous LCD API.

Version
$Id: lcd.h 159 2016-09-03 06:51:47Z pischky $
Author
Craig Lee
Alex Shepherd
Bernd Wisotzki

Definition in file lcd.h.

Enumeration Type Documentation

display on/off, cursor on/off, blinking char at cursor position

Enumerator
LCD_DISP_OFF 

display off

LCD_DISP_ON 

display on, cursor off

LCD_DISP_ON_BLINK 

display on, cursor off, blink char

LCD_DISP_ON_CURSOR 

display on, cursor on

LCD_DISP_ON_CURSOR_BLINK 

display on, cursor on, blink char

Definition at line 26 of file lcd.h.

Function Documentation

void lcd_clear ( void  )

Clear and home the LCD.

Definition at line 179 of file lcd.c.

Here is the call graph for this function:

void lcd_clrxy ( uint8_t  x,
uint8_t  y,
uint8_t  count 
)

Clear count characters starting at position (x,y).

Definition at line 222 of file lcd.c.

Here is the call graph for this function:

void lcd_goto ( uint8_t  x,
uint8_t  y 
)

Go to the specified position.

Definition at line 210 of file lcd.c.

Here is the call graph for this function:

void lcd_init ( lcdDisplayMode_t  dispAttr)

Initialize the LCD - call before anything else.

Parameters
dispAttrthe mode to use (on/off, cursor)

Definition at line 244 of file lcd.c.

Here is the call graph for this function:

void lcd_putc ( char  c)

Write a character to the LCD.

Definition at line 204 of file lcd.c.

Here is the call graph for this function:

void lcd_puts ( const char *  s)

Write a string of characters to the LCD.

Definition at line 186 of file lcd.c.

Here is the call graph for this function:

void lcd_puts_P ( const char *  s)

Write a string from progmem of chars to the LCD.

Definition at line 192 of file lcd.c.

Here is the call graph for this function:

void lcd_word ( uint16_t  value,
uint8_t  width 
)

Write numeric value to the LCD.

Definition at line 232 of file lcd.c.

Here is the call graph for this function: