Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1115 - 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[6][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 lcdSendByte(char data);
31
void lcdSendInstruction(char instruction);
32
void lcdPutc(char c);
33
void lcdPuts(char *str);
34
void lcdClear(void);
35
void lcdContrast(uint8_t dogm, uint8_t contrast);
36
void lcdGotoXY(uint8_t x, uint8_t y);
37
void lcdInit(uint8_t dogm, uint8_t contrast, uint8_t cursor, uint8_t blink);
38
 
39
#define lcdBacklightOn()            LCD_BACKLIGHT_PORT  |=  (1<<LCD_BACKLIGHT);
40
#define lcdBacklightOff()           LCD_BACKLIGHT_PORT  &= ~(1<<LCD_BACKLIGHT);
41
 
42
#endif /* DOGM_H_ */