Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1198 - 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 SpecialChr5_t[5][8];
27
typedef char SpecialChr7_t[7][8];
28
typedef char SpecialChr8_t[8][8];
29
 
30
void lcdWriteCGRAM(uint8_t lcd_addr, char *lcdChr);             // write a char string to CGRAM
31
void lcdWriteCGRAM_Array(SpecialChr8_t lcdChr, uint8_t quantity);       // write a array of char string to CGRAM
32
void lcdSendByte(char data);
33
void lcdSendInstruction(char instruction);
34
void lcdPutc(char c);
35
void lcdPuts(char *str);
36
void lcdClear(void);
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_ */