| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /* ========================================================================
- * [PROJECT] SIR100
- * [MODULE] Display
- * [TITLE] display header file
- * [FILE] display.h
- * [VSN] 1.0
- * [CREATED] 030414
- * [LASTCHNGD] 030414
- * [COPYRIGHT] Copyright (C) STREAMIT BV 2010
- * [PURPOSE] API and gobal defines for display module
- * ======================================================================== */
- #ifndef _Display_H
- #define _Display_H
- /*-------------------------------------------------------------------------*/
- /* global defines */
- /*-------------------------------------------------------------------------*/
- #define DISPLAY_SIZE 16
- #define NROF_LINES 2
- #define MAX_SCREEN_CHARS (NROF_LINES*DISPLAY_SIZE)
- #define LINE_0 0
- #define LINE_1 1
- #define FIRSTPOS_LINE_0 0
- #define FIRSTPOS_LINE_1 0x40
- #define LCD_BACKLIGHT_ON 1
- #define LCD_BACKLIGHT_OFF 0
- #define ALL_ZERO 0x00 // 0000 0000 B
- #define WRITE_COMMAND 0x02 // 0000 0010 B
- #define WRITE_DATA 0x03 // 0000 0011 B
- #define READ_COMMAND 0x04 // 0000 0100 B
- #define READ_DATA 0x06 // 0000 0110 B
- /*-------------------------------------------------------------------------*/
- /* typedefs & structs */
- /*-------------------------------------------------------------------------*/
- /*--------------------------------------------------------------------------*/
- /* Global variables */
- /*--------------------------------------------------------------------------*/
- /*-------------------------------------------------------------------------*/
- /* export global routines (interface) */
- /*-------------------------------------------------------------------------*/
- extern void LcdChar(char);
- extern void LcdBackLight(u_char);
- extern void LcdInit(void);
- extern void LcdLowLevelInit(void);
- extern void ClearLcd(void);
- extern void LcdArrayLineOne(char*, int);
- extern void LcdArrayLineTwo(char*, int);
- #endif /* _Display_H */
- /* ÍÍÍÍ End Of File ÍÍÍÍÍÍÍÍ ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ */
|