The Bubbleworks / NanoBit

Dependents:   TheBubbleWorks_MicroBorg

Fork of NanoBit by Wayne Keenan

Revision:
2:b45f392b18eb
Parent:
1:7a9d736530c8
Child:
3:388d7fc71320
--- a/NanoBitDisplay.cpp	Wed Feb 10 19:06:22 2016 +0000
+++ b/NanoBitDisplay.cpp	Thu Feb 11 07:17:51 2016 +0000
@@ -1,14 +1,20 @@
 #include <new>
 #include "nrf_gpio.h"
 #include "mbed.h"
+#include "NanoBitPins.h"
 #include "NanoBitDisplay.h"
 
-#define MY_DBG_ENABLED 1
 #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,
+    0b10101,
+    0b10101,
+    0b10101,
+    0b10101
+    };
 const uint8_t heart[]={ 
 0, 1, 0, 1, 0, 
 1, 1, 1, 1, 1,
@@ -53,13 +59,7 @@
 //    this->timingCount = 0;
     
     this->setBrightness(MICROBIT_DEFAULT_BRIGHTNESS);
-    uint8_t defaultBitmap[MICROBIT_DISPLAY_COLUMN_COUNT]= { 
-    0b101010,
-    0b101010,
-    0b101010,
-    0b101010,
-    0b101010
-    };
+
     
     //memcpy(bitmap, panicFace, sizeof(bitmap));
     memcpy(bitmap, heart, sizeof(bitmap));
@@ -115,7 +115,6 @@
         //MY_DBG_PRINTF("%d,%d => bitmap[%d]\n", x,y, y*(width*2)+x);
         
         if(bitmap[y*(width)+x]) {
-
             coldata |= (1 << i);
         }
     }