;;; ------------------------------------------------------------------- ;;; Defines to use the LCD library with a parallel interface. ;;; This file may need modifying in order to work with your system. ;;; ------------------------------------------------------------------- #define METHOD PARALLEL ; Indicate PARALLEL interface method. #define DATA_PORT PORTB ; The port that is used for data. #define DATA_WIDTH 4 ; The width of the data bus (4 or 8). #define DATA_LSB_PIN 4 ; The Pin of DATA_PORT which is used as the ; LSBit of data. This value must be ; between 0 and 4, but is ignored if ; data width is 8. #define CTRL_E_PORT PORTC ; Port to which LCD E is connected. #define CTRL_E_PIN 0 ; Pin to which LCD E is connected. #define CTRL_RW_PORT PORTC ; Port to which LCD R/W* is connected. #define CTRL_RW_PIN 1 ; Pin to which LCD R/W* is connected. #define CTRL_RS_PORT PORTC ; Port to which LCD RS is connected. #define CTRL_RS_PIN 2 ; Pin to which LCD RS is connected.