Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

lcd.h

00001 /***
00002  * This file is part of OpenHome, an open source home automation system.
00003  * Copyright (C) 2003 Jan Klötzke
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 #ifndef __LCD_H
00020 #define __LCD_H
00021 
00022 #include <avr/pgmspace.h>
00023 #include <inttypes.h>
00024 
00025 #define SMALL_CHAR_SIZE 8
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00031 void lcd_print(uint8_t x, uint8_t y, uint8_t inverted, char *text);
00032 uint8_t lcd_str_width(uint8_t *text);
00033 
00034 void lcd_v_line(uint8_t x, uint8_t y1, uint8_t y2);
00035 void lcd_h_line(uint8_t x1, uint8_t x2, uint8_t y);
00036 
00037 void lcd_put_image(uint8_t x, uint8_t y, PGM_P image);
00038 void lcd_clear_line(uint8_t x1, uint8_t x2, uint8_t y);
00039 void lcd_clear(void);
00040 
00041 void lcd_init(void);
00042 void lcd_activate(void);
00043 void lcd_deactivate(void);
00044 void lcd_enable_backlight(void);
00045 void lcd_disable_backlight(void);
00046 
00047 #ifdef __cplusplus
00048 }
00049 #endif
00050 
00051 #endif

Generated on Thu Oct 16 13:13:41 2003 for OpenHomeMainPanel by doxygen 1.3.3