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 "I2CLCD.h" 00003 00004 I2C i2c(p9, p10); 00005 I2CLCD i2clcd(i2c, I2CLCD_ADDR); 00006 /* 00007 DigitalOut pullup1(p19); 00008 DigitalOut pullup2(p20); 00009 */ 00010 //I2CLCD i2clcd(p9, p10); 00011 00012 DigitalOut myled(LED1); 00013 00014 int main() { 00015 int i = 1; 00016 00017 // pullup1 = pullup2 = 1; 00018 00019 myled = 1; 00020 i2clcd.putc('0' + i); 00021 i2clcd.putc('A' + i); 00022 i2clcd.putc('a' + i); 00023 i2clcd.printf("123456789abcdefghikjlmn"); 00024 myled = 0; 00025 00026 for (;;); 00027 }
Generated on Sun Jul 17 2022 05:15:41 by
1.7.2