00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KS0108CONF_H
00024 #define KS0108CONF_H
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #define GLCD_PORT_INTERFACE
00036
00037
00038 #ifdef GLCD_PORT_INTERFACE
00039
00040 #ifndef GLCD_CTRL_PORT
00041 #define GLCD_CTRL_PORT PORTB // PORT for LCD control signals
00042 #define GLCD_CTRL_DDR DDRB // DDR register of LCD_CTRL_PORT
00043 #define GLCD_CTRL_RS PB0 // pin for LCD Register Select
00044 #define GLCD_CTRL_RW PB1 // pin for LCD Read/Write
00045 #define GLCD_CTRL_E PB2 // pin for LCD Enable
00046 #define GLCD_CTRL_CS0 PB3 // pin for LCD Controller 0 Chip Select
00047 #define GLCD_CTRL_CS1 PB4 // pin for LCD Controller 1 Chip Select(*)
00048 #define GLCD_CTRL_CS2 PB6 // pin for LCD Controller 2 Chip Select(*)
00049 #define GLCD_CTRL_CS3 PB7 // pin for LCD Controller 3 Chip Select(*)
00050 #define GLCD_CTRL_RESET PB5 // pin for LCD Reset
00051
00052
00053
00054 #endif
00055 #ifndef GLCD_DATA_PORT
00056 #define GLCD_DATA_PORT PORTC // PORT for LCD data signals
00057 #define GLCD_DATA_DDR DDRC // DDR register of LCD_DATA_PORT
00058 #define GLCD_DATA_PIN PINC // PIN register of LCD_DATA_PORT
00059 #endif
00060 #endif
00061
00062
00063 #ifdef GLCD_MEMORY_INTERFACE
00064
00065 #ifndef GLCD_CONTROLLER0_CTRL_ADDR
00066
00067 #define GLCD_CONTROLLER0_CTRL_ADDR 0x1000
00068 #define GLCD_CONTROLLER0_DATA_ADDR 0x1001
00069
00070 #define GLCD_CONTROLLER_ADDR_OFFSET 0x0002
00071 #endif
00072 #endif
00073
00074
00075
00076 #define GLCD_XPIXELS 128 // pixel width of entire display
00077 #define GLCD_YPIXELS 64 // pixel height of entire display
00078 #define GLCD_CONTROLLER_XPIXELS 64 // pixel width of one display controller
00079
00080
00081
00082 #define GLCD_TEXT_LINES 8 // visible lines
00083 #define GLCD_TEXT_LINE_LENGTH 22 // internal line length
00084
00085 #endif