00001
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef __sys_lcd_h__
00027 #define __sys_lcd_h__
00028
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032
00033 #include <config.h>
00034 #include <rom/lcd.h>
00035
00037
00038
00039
00041
00042
00043
00044
00045 #define LCD_SHORT_CMD 0
00046 #define LCD_LONG_CMD 3
00047 #define LCD_DATA_OFFSET 5
00048 #define LCD_DATA_SIZE 9
00049
00050
00051
00052 #define LCD_MODE_SET 0x40
00053 #define LCD_ENABLE 0x08
00054 #define LCD_DISABLE 0x00
00055
00056
00057
00058 #define LCD_DEV_ID 0x7c
00059
00060 #define I2C_WRITE 0
00061 #define I2C_READ 1
00062
00063 #define SCL 5
00064 #define SDA 6
00065
00066
00068
00069
00070
00072
00073 extern unsigned char display_memory[];
00074
00076
00077
00078
00080
00082 extern void lcd_init(void);
00083
00085 extern void lcd_power_on(void);
00086
00088 extern void lcd_power_off(void);
00089
00091
00093 extern void lcd_refresh(void);
00094
00096
00099 extern void lcd_refresh_next_byte(void)
00100 #ifdef CONF_RCX_COMPILER
00101 __attribute__ ((rcx_interrupt))
00102 #endif
00103 ;
00104
00105 #ifdef __cplusplus
00106 }
00107 #endif
00108
00109 #endif // __sys_lcd_h__