Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mbed.h" 00002 #include "PCF2119.h" 00003 00004 DigitalOut myled(LED1); 00005 00006 I2C i2c(p9, p10); 00007 PCF2119 lcd(i2c, p11); 00008 //PCF2119 lcd(p9, p10, p11); 00009 00010 int main() { 00011 int i = 0; 00012 00013 lcd.cls(); 00014 lcd.printf("Hello World"); 00015 00016 while(1) { 00017 lcd.locate(0, 1); 00018 lcd.printf("%d", i); 00019 i ++; 00020 myled = !myled; 00021 wait(0.5); 00022 } 00023 }
Generated on Wed Jul 13 2022 10:26:39 by
1.7.2
PCF2119x