ver2
Revision 0:a0a92c934702, committed 2020-03-01
- Comitter:
- handreas
- Date:
- Sun Mar 01 13:29:42 2020 +0000
- Commit message:
- compiling ok
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| microbit.lib | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Sun Mar 01 13:29:42 2020 +0000
@@ -0,0 +1,17 @@
+#include "MicroBit.h"
+
+MicroBit uBit;
+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
+ MicroBitImage im(10,5,heart);
+
+int main()
+{
+ uBit.init();
+ for (int i=0;i<2;i++) {
+ uBit.display.scroll("HELLO WORLD!");
+ uBit.display.print(im);
+ uBit.sleep(500);
+ }
+ uBit.display.clear();
+ release_fiber();
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/microbit.lib Sun Mar 01 13:29:42 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/ikkeje/code/microbit/#ee31ccbe9919