Subversion Repositories Projects

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1465 - 1
 
2
/****************************************************************/
3
/*                                                                                                                                                                                                                                                      */
4
/*                                                                       NG-Video 5,8GHz                                                                                                                */
5
/*                                                                                                                                                                                                                                                      */
6
/*                                                              Copyright (C) 2011 - gebad                                                                              */
7
/*                                                                                                                                                                                                                                                      */
8
/*      This code is distributed under the GNU Public License                           */
9
/*      which can be found at http://www.gnu.org/licenses/gpl.txt               */
10
/*                                                                                                                                                                                                                                                      */
11
/*              using DOGM-Library 1.0.                                                                                                                                         */
12
/*              Copyright (C) 2010-averyfarwaydate Luca Bertoncello                             */
13
/*              Hartigstrasse, 12 - 01127 Dresden Deutschland                                                   */
14
/*              E-Mail: lucabert@lucabert.de, lucabert@lucabert.com                             */
15
/*              http://www.lucabert.de/ http://www.lucabert.com/                                        */
16
/****************************************************************/
17
 
18
#ifndef DOGM_H_
19
#define DOGM_H_
20
 
21
#include <avr/io.h>
22
 
23
#define                         DOGM3V          0               // 3,3V DOGM
24
#define                         DOGM5V          1               // 5V DOGM
25
 
26
typedef char SpecialChr_t[8];
27
 
28
void lcdWriteCGRAM(uint8_t lcd_addr, char *lcdChr);                                                                     // write a char string to CGRAM
29
void lcdWriteCGRAM_Array(SpecialChr_t *lcdChr, uint8_t quantity);               // write a array of char string to CGRAM
30
void lcdSendInstruction(char instruction);
31
void lcdPutc(char c);
32
void lcdPuts(char *str);
33
void lcdPutStrMid(char *str, uint8_t zle);
34
void lcdClear(void);
35
void lcdClearEOL(void);
36
void lcdClearLine(uint8_t y);
37
void lcdContrast(uint8_t dogm, uint8_t contrast);
38
void lcdGotoXY(uint8_t x, uint8_t y);
39
void lcdInit(uint8_t dogm, uint8_t contrast, uint8_t cursor, uint8_t blink);
40
 
41
#define lcdBacklightOn()            LCD_BACKLIGHT_PORT  |=  (1<<LCD_BACKLIGHT);
42
#define lcdBacklightOff()           LCD_BACKLIGHT_PORT  &= ~(1<<LCD_BACKLIGHT);
43
 
44
#endif /* DOGM_H_ */