2009-05-16 14:10:42 +02:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
< html > < head > < meta http-equiv = "Content-Type" content = "text/html;charset=UTF-8" >
< title > glcd: include/lc7981.h Source File< / title >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" >
< / head > < body >
<!-- Generated by Doxygen 1.5.5 -->
< div class = "navigation" id = "top" >
< div class = "tabs" >
< ul >
< li > < a href = "index.html" > < span > Main Page< / span > < / a > < / li >
< li class = "current" > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< / ul >
< / div >
< h1 > include/lc7981.h< / h1 > < a href = "lc7981_8h.html" > Go to the documentation of this file.< / a > < div class = "fragment" > < pre class = "fragment" > < a name = "l00001" > < / a > 00001 < span class = "comment" > /*< / span >
< a name = "l00002" > < / a > 00002 < span class = "comment" > * lc7981.h< / span >
< a name = "l00003" > < / a > 00003 < span class = "comment" > *< / span >
< a name = "l00004" > < / a > 00004 < span class = "comment" > * Created on: 01.05.2009< / span >
< a name = "l00005" > < / a > 00005 < span class = "comment" > * Author: sebastian< / span >
2009-05-17 18:02:52 +02:00
< a name = "l00006" > < / a > 00006 < span class = "comment" > *< / span >
< a name = "l00007" > < / a > 00007 < span class = "comment" > * This file is part of Sebastians AVR Library for lc7981.< / span >
< a name = "l00008" > < / a > 00008 < span class = "comment" > *< / span >
< a name = "l00009" > < / a > 00009 < span class = "comment" > * Sebastians AVR Library is free software: you can redistribute it and/or modify< / span >
< a name = "l00010" > < / a > 00010 < span class = "comment" > * it under the terms of the GNU General Public License as published by< / span >
< a name = "l00011" > < / a > 00011 < span class = "comment" > * the Free Software Foundation, either version 3 of the License, or< / span >
< a name = "l00012" > < / a > 00012 < span class = "comment" > * (at your option) any later version.< / span >
< a name = "l00013" > < / a > 00013 < span class = "comment" > *< / span >
< a name = "l00014" > < / a > 00014 < span class = "comment" > * Sebastians AVR Library is distributed in the hope that it will be useful,< / span >
< a name = "l00015" > < / a > 00015 < span class = "comment" > * but WITHOUT ANY WARRANTY; without even the implied warranty of< / span >
< a name = "l00016" > < / a > 00016 < span class = "comment" > * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the< / span >
< a name = "l00017" > < / a > 00017 < span class = "comment" > * GNU General Public License for more details.< / span >
< a name = "l00018" > < / a > 00018 < span class = "comment" > *< / span >
< a name = "l00019" > < / a > 00019 < span class = "comment" > * You should have received a copy of the GNU General Public License< / span >
< a name = "l00020" > < / a > 00020 < span class = "comment" > * along with Sebastians AVR Library. If not, see < http://www.gnu.org/licenses/> .< / span >
< a name = "l00021" > < / a > 00021 < span class = "comment" > *< / span >
< a name = "l00022" > < / a > 00022 < span class = "comment" > */< / span >
< a name = "l00023" > < / a > 00023
< a name = "l00024" > < / a > 00024 < span class = "preprocessor" > #ifndef LC7981_H_< / span >
2009-05-17 18:35:27 +02:00
< a name = "l00025" > < / a > < a class = "code" href = "lc7981_8h.html#e6ff861bd55f4dc46f25f5f6abfca15f" > 00025< / a > < span class = "preprocessor" > < / span > < span class = "preprocessor" > #define LC7981_H_ LC7981_H_ < / span >
2009-05-17 18:02:52 +02:00
< a name = "l00026" > < / a > 00026 < span class = "preprocessor" > < / span >
2009-05-17 18:35:27 +02:00
< a name = "l00027" > < / a > 00027 < span class = "preprocessor" > < / span > < span class = "preprocessor" > #include < avr/io.h> < / span >
2009-05-17 18:02:52 +02:00
< a name = "l00028" > < / a > 00028 < span class = "preprocessor" > #include < util/delay.h> < / span >
< a name = "l00029" > < / a > 00029 < span class = "preprocessor" > #include < avr/pgmspace.h> < / span >
< a name = "l00030" > < / a > 00030
2009-05-17 18:35:27 +02:00
< a name = "l00031" > < / a > < a class = "code" href = "lc7981_8h.html#8e945df7ca614325cafa08258e82a63c" > 00031< / a > < span class = "preprocessor" > #define LCD_CTRL PORTC < / span >
< a name = "l00032" > < / a > < a class = "code" href = "lc7981_8h.html#4b6c8400da9a1ca3d4d83f3ef1f9c34a" > 00032< / a > < span class = "preprocessor" > #define LCD_CRTL_DDR DDRC < / span >
< a name = "l00033" > < / a > < a class = "code" href = "lc7981_8h.html#4781e073871c6f27f89b9463ad3a4ed1" > 00033< / a > < span class = "preprocessor" > #define LCD_RS PC4 < / span >
< a name = "l00034" > < / a > < a class = "code" href = "lc7981_8h.html#26089a10ddd59a0dc7283c19ccc02533" > 00034< / a > < span class = "preprocessor" > #define LCD_RW PC2 < / span >
< a name = "l00035" > < / a > < a class = "code" href = "lc7981_8h.html#1640ffbc0d8ec0f7edb04a2b93918072" > 00035< / a > < span class = "preprocessor" > #define LCD_EN PC0 < / span >
2009-05-17 18:02:52 +02:00
< a name = "l00036" > < / a > 00036 < span class = "preprocessor" > < / span >
2009-05-17 18:35:27 +02:00
< a name = "l00037" > < / a > 00037 < span class = "preprocessor" > < / span >
2009-05-17 18:02:52 +02:00
< a name = "l00038" > < / a > 00038
2009-05-17 18:35:27 +02:00
< a name = "l00039" > < / a > < a class = "code" href = "lc7981_8h.html#25e9d818788f36ed74d7c4579f87f2a6" > 00039< / a > < span class = "preprocessor" > #define LCD_DATA PORTD < / span >
< a name = "l00040" > < / a > < a class = "code" href = "lc7981_8h.html#0c114e723aa4c162c415fb6d4d963dd7" > 00040< / a > < span class = "preprocessor" > #define LCD_DATA_DDR DDRD < / span >
2009-05-17 18:02:52 +02:00
< a name = "l00041" > < / a > 00041 < span class = "preprocessor" > < / span >
2009-05-17 18:35:27 +02:00
< a name = "l00042" > < / a > 00042 < span class = "preprocessor" > < / span > < span class = "comment" > // Macros for (un)setting the control pins< / span >
< a name = "l00043" > < / a > < a class = "code" href = "lc7981_8h.html#795b48274d3f80bc744a707b67fd93e9" > 00043< / a > < span class = "preprocessor" > #define lcd_rs_high() (LCD_CTRL |= (1 < < LCD_RS)) < / span >
< a name = "l00044" > < / a > < a class = "code" href = "lc7981_8h.html#6edb13d59460246fb4cc32ada1c9f4a8" > 00044< / a > < span class = "preprocessor" > #define lcd_rs_low() (LCD_CTRL & = ~(1 < < LCD_RS)) < / span >
2009-05-17 18:02:52 +02:00
< a name = "l00045" > < / a > 00045 < span class = "preprocessor" > < / span >
2009-05-17 18:35:27 +02:00
< a name = "l00046" > < / a > < a class = "code" href = "lc7981_8h.html#d0ce3cd9b481370ad4de36eff08440c8" > 00046< / a > < span class = "preprocessor" > < / span > < span class = "preprocessor" > #define lcd_rw_high() (LCD_CTRL |= (1 < < LCD_RW)) < / span >
< a name = "l00047" > < / a > < a class = "code" href = "lc7981_8h.html#7f5ebe0ca71b1298a7d3423850cc82b1" > 00047< / a > < span class = "preprocessor" > #define lcd_rw_low() (LCD_CTRL & = ~(1 < < LCD_RW)) < / span >
2009-05-17 18:02:52 +02:00
< a name = "l00048" > < / a > 00048 < span class = "preprocessor" > < / span >
2009-05-17 18:35:27 +02:00
< a name = "l00049" > < / a > < a class = "code" href = "lc7981_8h.html#e14be306d3620577abc8613d40401b04" > 00049< / a > < span class = "preprocessor" > < / span > < span class = "preprocessor" > #define lcd_en_high() (LCD_CTRL |= (1 < < LCD_EN)) < / span >
< a name = "l00050" > < / a > < a class = "code" href = "lc7981_8h.html#d8dcdb36a9410fd96b2c936b7c9355dd" > 00050< / a > < span class = "preprocessor" > #define lcd_en_low() (LCD_CTRL & = ~(1 < < LCD_EN)) < / span >
2009-05-17 18:02:52 +02:00
< a name = "l00051" > < / a > 00051 < span class = "preprocessor" > < / span >
2009-05-17 18:35:27 +02:00
< a name = "l00052" > < / a > 00052 < span class = "preprocessor" > < / span >
< a name = "l00053" > < / a > < a class = "code" href = "lc7981_8h.html#90a69d37f5c80f3ded970acf2dacf4c0" > 00053< / a > < span class = "preprocessor" > #define LCD_TEXT 0 < / span >
< a name = "l00054" > < / a > < a class = "code" href = "lc7981_8h.html#720ef60606ac38ca3a5ab96a9c2b8168" > 00054< / a > < span class = "preprocessor" > #define LCD_TEXT_LINES 10 < / span >
< a name = "l00055" > < / a > < a class = "code" href = "lc7981_8h.html#82f0a630f3c41b5233f2ceb07c7dd736" > 00055< / a > < span class = "preprocessor" > #define LCD_TEXT_COLUMNS 26 < / span >
2009-05-17 18:02:52 +02:00
< a name = "l00056" > < / a > 00056 < span class = "preprocessor" > < / span >
2009-05-17 18:35:27 +02:00
< a name = "l00057" > < / a > < a class = "code" href = "lc7981_8h.html#dfaedf8da8e73d39a98d709b519a3117" > 00057< / a > < span class = "preprocessor" > < / span > < span class = "preprocessor" > #define LCD_GRAPHIC 1 < / span >
< a name = "l00058" > < / a > < a class = "code" href = "lc7981_8h.html#51e83be6f6929f2a29d5467cd937dfc6" > 00058< / a > < span class = "preprocessor" > #define LCD_GRAPHIC_WIDTH 160 < / span >
< a name = "l00059" > < / a > < a class = "code" href = "lc7981_8h.html#70265c4f840ef78872243e91c923af2f" > 00059< / a > < span class = "preprocessor" > #define LCD_GRAPHIC_HEIGHT 80 < / span >
< a name = "l00060" > < / a > < a class = "code" href = "lc7981_8h.html#eb2d212a26da4a5a4d3231b2773023e5" > 00060< / a > < span class = "preprocessor" > #define PIXEL_ON 1 < / span >
< a name = "l00061" > < / a > < a class = "code" href = "lc7981_8h.html#cda2f1b1cf6310700d0d91643c40e068" > 00061< / a > < span class = "preprocessor" > #define PIXEL_OFF 0 < / span >
2009-05-17 18:02:52 +02:00
< a name = "l00062" > < / a > 00062 < span class = "preprocessor" > < / span >
2009-05-17 18:35:27 +02:00
< a name = "l00063" > < / a > 00063 < span class = "preprocessor" > < / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "lc7981_8c.html#9b18aca098d68e55bd7dd4b83f4f36e9" title = "lcd_init set the to default values." > lcd_init< / a > (uint8_t mode);
2009-05-17 18:02:52 +02:00
< a name = "l00064" > < / a > 00064 < span class = "keyword" > inline< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "lc7981_8c.html#35c08b1fa742e650f4873939707b893b" title = "Clears the display by setting the whole memory to 0." > lcd_clear< / a > ();
< a name = "l00065" > < / a > 00065
< a name = "l00066" > < / a > 00066 < span class = "keywordtype" > void< / span > < a class = "code" href = "lc7981_8c.html#30251238a49999658455fdb0233757fb" > lcd_write_text< / a > (< span class = "keywordtype" > char< / span > *txt);
< a name = "l00067" > < / a > 00067 < span class = "keyword" > inline< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "lc7981_8c.html#dbf47a5efdf02367ded1ebf8f9edb5fe" title = "Set the display cursor to a specific location." > lcd_gotoxy< / a > (uint8_t x, uint8_t y);
< a name = "l00068" > < / a > 00068
< a name = "l00069" > < / a > 00069 < span class = "keywordtype" > void< / span > < a class = "code" href = "lc7981_8c.html#735111507ed83172f58d5af2953e31c6" title = "set or unset a pixel at the specified location" > lcd_plot_pixel< / a > (uint8_t x, uint8_t y, uint8_t < span class = "keyword" > set< / span > );
< a name = "l00070" > < / a > 00070 < span class = "keywordtype" > void< / span > < a class = "code" href = "lc7981_8c.html#f3b584ee8235c6ed4ebefc50f8a95915" title = "This function will plot a bitmap with the upper left corner to the given coordinates..." > lcd_plot_bitmap< / a > (uint8_t x, uint8_t y, < span class = "keyword" > const< / span > uint8_t *bitmap, uint8_t w, uint8_t h);
< a name = "l00071" > < / a > 00071
< a name = "l00072" > < / a > 00072
< a name = "l00073" > < / a > 00073 < span class = "keyword" > inline< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "lc7981_8c.html#b4f286d6a313df7a5f692e0b4a9509ad" title = "Generates the strobe signal for writing data." > lcd_strobe< / a > ();
< a name = "l00074" > < / a > 00074 < span class = "keyword" > inline< / span > < span class = "keywordtype" > void< / span > < a class = "code" href = "lc7981_8c.html#b69146a9179fc5b5deef3fc61cf0208c" title = "Writes a command and a data byte to the lcd." > lcd_write_command< / a > (uint8_t cmd, uint8_t data);
< a name = "l00075" > < / a > 00075 < span class = "keyword" > inline< / span > uint8_t < a class = "code" href = "lc7981_8c.html#6334333537ad1d0bd51cba1e80f32e74" title = "Reads a byte from the display memory." > lcd_read_byte< / a > ();
< a name = "l00076" > < / a > 00076
< a name = "l00077" > < / a > 00077 < span class = "preprocessor" > #endif < / span > < span class = "comment" > /* LC7981_H_ */< / span >
2009-05-16 14:10:42 +02:00
< / pre > < / div > < / div >
2009-05-17 18:35:27 +02:00
< hr size = "1" > < address style = "text-align: right;" > < small > Generated on Sun May 17 18:34:49 2009 for glcd by
2009-05-16 14:10:42 +02:00
< a href = "http://www.doxygen.org/index.html" >
< img src = "doxygen.png" alt = "doxygen" align = "middle" border = "0" > < / a > 1.5.5 < / small > < / address >
< / body >
< / html >