Driver for a Text LCD using a PCF8574 over I2C It works with standard I2C Module with different pinout
Fork of I2CTextLCD by
main.cpp@1:3561ca8c9754, 2018-04-06 (annotated)
- Committer:
- inggrig
- Date:
- Fri Apr 06 09:33:48 2018 +0000
- Revision:
- 1:3561ca8c9754
- Parent:
- 0:6beb6f498640
Library for I2C Lcd 16x2 with china 1? I2C module
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
romilly | 0:6beb6f498640 | 1 | #include "mbed.h" |
romilly | 0:6beb6f498640 | 2 | #include "TextLCD.h" |
romilly | 0:6beb6f498640 | 3 | |
inggrig | 1:3561ca8c9754 | 4 | TextLCD lcd(PB_9, PB_8,0x4E); |
inggrig | 1:3561ca8c9754 | 5 | int k=0; |
romilly | 0:6beb6f498640 | 6 | int main() { |
inggrig | 1:3561ca8c9754 | 7 | wait(1); |
romilly | 0:6beb6f498640 | 8 | lcd.printf("Hi mbed World!\n"); |
inggrig | 1:3561ca8c9754 | 9 | while(1) |
inggrig | 1:3561ca8c9754 | 10 | { |
inggrig | 1:3561ca8c9754 | 11 | wait(1); |
inggrig | 1:3561ca8c9754 | 12 | lcd.printf("Hi mbed World %d!\n",k); |
inggrig | 1:3561ca8c9754 | 13 | k++; |
inggrig | 1:3561ca8c9754 | 14 | } |
romilly | 0:6beb6f498640 | 15 | } |