/* * LCD interface header file * See lcd.c for more info */ static bit LED @ ((unsigned)&PORTB*8+0); // LED static bit LCD_RW @ ((unsigned)&PORTB*8+1); // R/W(1/0) static bit LCD_RS @ ((unsigned)&PORTB*8+2); // Register select static bit LCD_EN @ ((unsigned)&PORTB*8+3); // Enable /* write a byte to the LCD in 4 bit mode */ extern void lcd_write(unsigned char); extern void lcd_writex(unsigned char); /* Clear and home the LCD */ extern void lcd_clear(void); /* write a string of characters to the LCD */ extern void lcd_putch(char); extern void lcd_puts(const char *s); /* Go to the specified position */ extern void lcd_curs(unsigned char pos); extern void lcd_prints(unsigned char pos, const char *s); /* intialize the LCD - call before anything else */ extern void lcd_init(void); extern void blink_led(unsigned char n); extern char hexch(unsigned char n); extern void lcd_puthex2(unsigned char n);