Daniel Peter
/
TextLCD_I2C
main.cpp
- Committer:
- mbed714
- Date:
- 2010-05-01
- Revision:
- 0:e24d0927ca75
File content as of revision 0:e24d0927ca75:
#include "mbed.h" #include "TextLCD_I2C.h" DigitalOut myled(LED1); DigitalOut myled2(LED2); TextLCD_I2C lcd (p28,p27,0x44); DigitalIn myButton(p30); int main() { lcd.cls(); lcd.locate(0,0); lcd.printf("Hello world!"); lcd.locate(0,1); lcd.printf("I2C Kicks ass!"); while(1) { myled = 1; lcd.led(0); myled2 = myButton; wait(0.5); myled = 0; lcd.led(1); myled2 = myButton; wait(0.5); } }