A demo program for ACM1602NI (I2C Tex LCD Library)

Dependencies:   ACM1602NI mbed

Committer:
takuo
Date:
Sat Feb 15 13:53:08 2014 +0000
Revision:
3:31883759a07d
Parent:
2:f32887f3ffbe
Now the code is the same as one in the document of ACM1602NI library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
takuo 2:f32887f3ffbe 1 /** A demo program for ACM1602NI (I2C text LCD library)
takuo 2:f32887f3ffbe 2 * Takuo WATANABE (wtakuo)
takuo 2:f32887f3ffbe 3 * http://mbed.org/users/takuo/code/ACM1602NI/
takuo 2:f32887f3ffbe 4 */
takuo 2:f32887f3ffbe 5
takuo 0:f2ff5dc2a1f7 6 #include "mbed.h"
takuo 0:f2ff5dc2a1f7 7 #include "ACM1602NI.h"
takuo 0:f2ff5dc2a1f7 8
takuo 2:f32887f3ffbe 9 // I2C pins: p9 = sda, p10 = scl
takuo 1:b42944e91944 10 ACM1602NI lcd(p9, p10);
takuo 0:f2ff5dc2a1f7 11
takuo 2:f32887f3ffbe 12 // You can specify an I2C object instead.
takuo 2:f32887f3ffbe 13 // I2C i2c(p9, p10);
takuo 2:f32887f3ffbe 14 // ACM1602NI lcd(i2c);
takuo 2:f32887f3ffbe 15
takuo 3:31883759a07d 16 int main() {
takuo 0:f2ff5dc2a1f7 17 lcd.printf("Hello, World!\n");
takuo 0:f2ff5dc2a1f7 18 lcd.printf("ACM1602NI\n");
takuo 0:f2ff5dc2a1f7 19 }