File: I2C_LCD_PCF8574.md

package info (click to toggle)
kuttypy 2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 37,896 kB
  • sloc: python: 58,651; javascript: 14,686; xml: 5,767; ansic: 2,716; makefile: 453; asm: 254; sh: 48
file content (24 lines) | stat: -rw-r--r-- 474 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## 16 Character LCD with I2C interface

This display uses a PCF8574 module which is an I2C I/O expander to stand as an
intermediary between a 16 character LCD display and the kuttypy.

The below example shows how to use it.


!!! tip "examples/C/test-i2c-lcd.c"
	```python
	#include <avr/kp.h>   // Include file for I/O operations
	
	int main (void)
	{
	i2c_lcd_init();
	
	i2c_lcd_clear();
	i2c_lcd_put_string("row  one!",1);
	i2c_lcd_put_string("row  two!",2);
	
	}
	```