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 // using NuMaker-PFM-NUC472 I2C1 to print text on LCD 00002 #include "mbed.h" 00003 #include "ssd1306.h" 00004 00005 I2C i2c1(PD_12, PD_10); // I2C1_SDA, I2C1_SCL 00006 00007 SSD1306 LCD; 00008 00009 int main() { 00010 i2c1.frequency(400000); 00011 00012 LCD.initialize(); 00013 LCD.clearscreen(); 00014 00015 LCD.printLine(0,"NuMaker - NUC472"); 00016 LCD.printLine(1,"ARM mbed OS 5.x "); 00017 LCD.printLine(2,"SSD1306 I2C-OLED"); 00018 LCD.printLine(3,"printLine Demo "); 00019 }
Generated on Tue Jul 12 2022 15:46:51 by
