/* * LCDNHDC0220.h * * Created on: 24.03.2012 * Author: R.Tyrakowski */ #ifndef LCDNHDC0220_H_ #define LCDNHDC0220_H_ #endif /* LCDNHDC0220_H_ */ // SDA : In Pin P4.6 // SDA LCD // SCL : Out Pin P4.7 // SCL LCD #include #define sda BIT6 #define sda_p P4SEL &= ~sda #define sda_din P4DIR &= ~sda #define sda_dout P4DIR |= sda #define sda_h P4OUT |= sda #define sda_l P4OUT &= ~sda #define sda_in P4IN & sda #define scl BIT7 #define scl_p P4SEL &= ~scl #define scl_d P4DIR |= scl #define scl_h P4OUT |= scl #define scl_l P4OUT &= ~scl #define def_LCDSlaveaddress 0x78 #define def_Comsend0 0x00 #define def_ComsendData 0x40 #define def_Comsend1 0x80 #define col_red 1 #define col_green 2 #define col_blue 3 #define col_white 7 #define col_off 0