Real Time Clock Module with I2C Interface  0.3
⇒ back to Project Page
 All Data Structures Files Functions Variables Typedefs Macros Pages
Functions | Variables
lcd.c File Reference

4 Bit Interface to LCD displays with up to 4 rows and a single Controller (e.g. ST7066U or HD44780). More...

#include <avr/io.h>
#include <util/delay.h>
#include <avr/pgmspace.h>
#include "port_definitions.h"
#include "lcd.h"
Include dependency graph for lcd.c:

Go to the source code of this file.

Functions

void lcd_set_backlight (uint8_t control)
 
void lcd_enable (void)
 
void lcd_send_data (unsigned char data)
 
void lcd_send_command (unsigned char command)
 
void lcd_set_cursor (uint8_t column, uint8_t row)
 
void lcd_send_string (const char *data, uint8_t flash_mem)
 
void lcd_clear (void)
 
void lcd_cursor_home (void)
 
void lcd_init (void)
 
void lcd_pin_init (void)
 
void lcd_blpin_init (void)
 

Variables

uint8_t next_ddram_address
 contains next ddram address
 
uint8_t lcd_backlight_state
 contains the current backlight state
 

Detailed Description

4 Bit Interface to LCD displays with up to 4 rows and a single Controller (e.g. ST7066U or HD44780).

Author
Michael Skutek
Date
11.09.2011
Version
0.9

Platform: AVR ATmega (tested on ATmega16)

Include Files:

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file lcd.c.