Cutdown and discrete versions of the official MicroBit libraries.

Dependents:   TheBubbleWorks_MicroBorg

Fork of NanoBit by Wayne Keenan

Files at this revision

API Documentation at this revision

Comitter:
waynek
Date:
Mon Mar 14 09:01:00 2016 +0000
Parent:
2:b45f392b18eb
Child:
4:117f7dca8b81
Commit message:
removed debug image

Changed in this revision

NanoBitDisplay.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/NanoBitDisplay.cpp	Thu Feb 11 07:17:51 2016 +0000
+++ b/NanoBitDisplay.cpp	Mon Mar 14 09:01:00 2016 +0000
@@ -6,7 +6,7 @@
 
 #include "MyDebug.h"
 
-
+/*
 const uint8_t panicFace[MICROBIT_DISPLAY_COLUMN_COUNT] = {0x1B, 0x1B,0x0,0x0E,0x11};
 const uint8_t defaultBitmap[MICROBIT_DISPLAY_COLUMN_COUNT]= { 
     0b10101,
@@ -15,6 +15,7 @@
     0b10101,
     0b10101
     };
+*/    
 const uint8_t heart[]={ 
 0, 1, 0, 1, 0, 
 1, 1, 1, 1, 1,
@@ -22,6 +23,7 @@
 0, 1, 1, 1, 0, 
 0, 0, 1, 0, 0}; // a cute heart
 
+
 const MatrixPoint MicroBitDisplay::matrixMap[MICROBIT_DISPLAY_COLUMN_COUNT][MICROBIT_DISPLAY_ROW_COUNT] = 
 {   
     {MatrixPoint(0,0),MatrixPoint(4,2),MatrixPoint(2,4)},
@@ -62,7 +64,7 @@
 
     
     //memcpy(bitmap, panicFace, sizeof(bitmap));
-    memcpy(bitmap, heart, sizeof(bitmap));
+    //memcpy(bitmap, heart, sizeof(bitmap));
     systemTicker.attach(this, &MicroBitDisplay::systemTick, MICROBIT_DISPLAY_REFRESH_PERIOD);     
 
 }