| 1 | ## 16 Character LCD with I2C interface |
| 2 | |
| 3 | This display uses a PCF8574 module which is an I2C I/O expander to stand as an |
| 4 | intermediary between a 16 character LCD display and the kuttypy. |
| 5 | |
| 6 | The below example shows how to use it. |
| 7 | |
| 8 | |
| 9 | !!! tip "examples/C/test-i2c-lcd.c" |
| 10 | ```python |
| 11 | #include <avr/kp.h> // Include file for I/O operations |
| 12 | |
| 13 | int main (void) |
| 14 | { |
| 15 | i2c_lcd_init(); |
| 16 | |
| 17 | i2c_lcd_clear(); |
| 18 | i2c_lcd_put_string("row one!",1); |
| 19 | i2c_lcd_put_string("row two!",2); |
| 20 | |
| 21 | } |
| 22 | ``` |
| 23 | |
| 24 |