hardware.h

来自「LCD module driver」· C头文件 代码 · 共 45 行

H
45
字号
/* * I/O port base address of your parallel port the LCD panel * is connected to, uncomment one of the following or add your own *//* #define LCD_ADDRESS 0x0378 */ /* corresponds to lpt1: on most PCs *//* #define LCD_ADDRESS 0x0278 */ /* corresponds to lpt2: on most PCs */#define LCD_ADDRESS 0x3bc        /* corresponds to my parport ;) *//* * Display specific information *//* number of columns and rows (lines) your display has */#define LCD_COLS 20#define LCD_LINES 4/* * Some displays vary in their timing * There are two critical times needed by the driver, one short and one * a little longer. By experiment I have optimized for my display to the * following values. If your display looses characters or just displays * false characters try bigger values. * The specs say TIME_SHORT=100 TIME_LONG=100 */#define TIME_SHORT 40#define TIME_LONG 100/* * No user servicable parts below this line! *//* * The major device ID for the driver */#define LCD_MAJOR 120/* Drop an error line if no appropriate hardware was found */#ifndef LCD_ADDRESS#error --== LCD_ADDRESS undefined, read hardware.h! ==--#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?