#include <config.h>
#include <avr/io.h>
#include <util/delay_basic.h>
#include <util/delay.h>
Go to the source code of this file.
Functions | |
void | send_byte_to_lcd (uint8_t rs, uint8_t lcd_data) |
Internal command used within the library to sens a byte over the two wire system. | |
void | home_lcd (void) |
Move the LCD cursor to the home position without otherwise changing the display. | |
void | clear_lcd (void) |
clear the display, and home the cursor. | |
void | scroll_lcd_left (void) |
Scroll the display left by 1 character, without otherwise changing the display. | |
void | scroll_lcd_right (void) |
Scroll the display right by 1 character, without otherwise changing the display. | |
void | row2_lcd (void) |
Move the LCD cursor to the second line of the display. | |
void | setaddress_lcd (uint8_t row, uint8_t column) |
Move the address pointer to the memory address corresponding to the row and column specified. | |
void | LCD_display_char (char character) |
Display the specified character at the cursor position and move the cursor on 1 position. | |
void | LCD_display_string (char *string) |
Display the specified string at the cursor position and move the cursor on. | |
void | LCD_display_uint8 (uint8_t val) |
Display an 8 bit unsigned value as up to three characters. | |
void | LCD_display_int8 (int8_t val) |
Display a signed 8 bit value as an optional minus sign followed by up to three characters. | |
void | LCD_display_uint16 (uint16_t val) |
Display a 16 bit unsigned value as up to three characters. | |
void | LCD_display_int16 (int16_t val) |
Display a signed 16 bit value as an optional minus sign followed by up to three characters. | |
void | LCD_display_bin (uint8_t val) |
Display an 8 bit unsigned value as exactly eight characters of 0 or 1. | |
void | LCD_display_nibble (uint8_t nibble) |
Display the lowest 4 bits of an 8 bit unsigned value as one ASCII character 0-9,A-F. | |
void | LCD_display_hex (uint8_t val) |
Display an 8 bit unsigned value as two ASCII characters 0-9,A-F. | |
void | lcd_out_iso_time (uint8_t *time_store) |
Display a time value in ISO format, from data stored in memory, to LCD. |
void clear_lcd | ( | void | ) |
clear the display, and home the cursor.
Convenience function to issue the command 0x01 This function will return as soon as the command is issued, the display may internally take an unspecified time to execute the command.
void home_lcd | ( | void | ) |
Move the LCD cursor to the home position without otherwise changing the display.
Convenience function to issue the command 0x02 This function will return as soon as the command is issued, the display may internally take an unspecified time to execute the command.
void LCD_display_bin | ( | uint8_t | val | ) |
Display an 8 bit unsigned value as exactly eight characters of 0 or 1.
val | The 8 bit value to be displayed |
See the documentation for LCD_display_char for more detail and limitations of these LCD devices,
void LCD_display_char | ( | char | character | ) |
Display the specified character at the cursor position and move the cursor on 1 position.
character | The 8 bit character to be displayed |
This function will return as soon as the command is issued, the display may internally take an unspecified time to execute the command.
void LCD_display_hex | ( | uint8_t | val | ) |
Display an 8 bit unsigned value as two ASCII characters 0-9,A-F.
val | The 8 bit value to be displayed |
See the documentation for LCD_display_char for more detail and limitations of these LCD devices,
void LCD_display_int16 | ( | int16_t | val | ) |
Display a signed 16 bit value as an optional minus sign followed by up to three characters.
val | The 16 bit value to be displayed |
See the documentation for LCD_display_char for more detail and limitations of these LCD devices,
void LCD_display_int8 | ( | int8_t | val | ) |
Display a signed 8 bit value as an optional minus sign followed by up to three characters.
val | The 8 bit value to be displayed |
See the documentation for LCD_display_char for more detail and limitations of these LCD devices,
void LCD_display_nibble | ( | uint8_t | nibble | ) |
Display the lowest 4 bits of an 8 bit unsigned value as one ASCII character 0-9,A-F.
nibble | The 8 bit value to be displayed |
See the documentation for LCD_display_char for more detail and limitations of these LCD devices,
void LCD_display_string | ( | char * | string | ) |
Display the specified string at the cursor position and move the cursor on.
string | pointer to the start of the string |
void LCD_display_uint16 | ( | uint16_t | val | ) |
Display a 16 bit unsigned value as up to three characters.
val | The 16 bit value to be displayed |
See the documentation for LCD_display_char for more detail and limitations of these LCD devices,
void LCD_display_uint8 | ( | uint8_t | val | ) |
Display an 8 bit unsigned value as up to three characters.
val | The 8 bit value to be displayed |
See the documentation for LCD_display_char for more detail and limitations of these LCD devices,
void lcd_out_iso_time | ( | uint8_t * | time_store | ) |
Display a time value in ISO format, from data stored in memory, to LCD.
time_store | Pointer to 7 BCD values representing in order seconds,minutes,hours,day,month,day of week(ignored),year. |
15:23:00 on 3rd April 2010 would be "2010-04-03 15:23:00"
See the documentation for LCD_display_char for more detail and limitations of these LCD devices,
void row2_lcd | ( | void | ) |
Move the LCD cursor to the second line of the display.
This function will return as soon as the command is issued, the display may internally take an unspecified time to execute the command.
void scroll_lcd_left | ( | void | ) |
Scroll the display left by 1 character, without otherwise changing the display.
Note that both lines scroll left on a multi line display. The display has 40 characters of memory for each line, irrespective of the number of characters displayed. This function will return as soon as the command is issued, the display may internally take an unspecified time to execute the command.
void scroll_lcd_right | ( | void | ) |
Scroll the display right by 1 character, without otherwise changing the display.
Note that both lines scroll right on a multi line display, either wrapping or inserting blank chacters at the beginning of the line depending on the specific model of LCD. The display has 40 characters of memory for each line, irrespective of the number of characters displayed. This function will return as soon as the command is issued, the display may internally take an unspecified time to execute the command.
void send_byte_to_lcd | ( | uint8_t | rs, | |
uint8_t | lcd_data | |||
) |
Internal command used within the library to sens a byte over the two wire system.
rs | 1=data, 0=control | |
lcd_data | 8 bit value to be sent to the LCD |
void setaddress_lcd | ( | uint8_t | row, | |
uint8_t | column | |||
) |
Move the address pointer to the memory address corresponding to the row and column specified.
row | Row number counting from 0 | |
column | Column number counting from 0 |
The display has 40 characters of memory for each line, irrespective of the number of characters displayed.
This function will return as soon as the command is issued, the display may internally take an unspecified time to execute the command.