PCF8574 <-> LCD ---------------------------------------------- P0 <-> DB4 P1 <-> DB5 P2 <-> DB6 P3 <-> DB7 P4 <-> RS P5 <-> R/W P6 <-> - P7 <-> Enable
#include "i2clcd.h" int main(void) { ... lcd_init(); //- Display initialization ... char string[] = "Hi World"; lcd_print(string); //- Print a string lcd_gotolr(2,4); //- Move to position (line 2, row 4) //- Turn cursor off and activate blinking lcd_command(LCD_DISPLAYON | LCD_CURSOROFF | LCD_BLINKINGON); ... }
1.4.7