#include "i2c_lcd.h"
// Attach the interrupts in setup()
void setup() {
i2c_lcd_init(DEFADDR); //initialize the LCD with 8 bit mode
i2c_lcd_write_string("HELLO AVR"); //lcd_write_string() prints strings on the LCD
i2c_lcd_show_cursor_block(); //lcd_show_cursor_block() turns the cursor to a blinking block
i2c_lcd_set_cursor(1,0); //lcd_set_cursor() sets the postion of the cursor at (row,column)
1
i2c_lcd_write_string("HD44780 LCD API FOR");2
}
void loop() {
}
1 221