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 "MicroBit.h" 00002 00003 MicroBit uBit; 00004 const uint8_t heart[] = { 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, }; // a cute heart 00005 MicroBitImage im(10,5,heart); 00006 00007 int main() 00008 { 00009 uBit.init(); 00010 for (int i=0;i<2;i++) { 00011 uBit.display.scroll("HELLO WORLD!"); 00012 uBit.display.print(im); 00013 uBit.sleep(500); 00014 } 00015 uBit.display.clear(); 00016 release_fiber(); 00017 }
Generated on Mon Jul 25 2022 10:44:19 by
1.7.2