microbit-dal

Dependencies:   BLE_API mbed-dev-bin nRF51822

Fork of microbit-dal by Lancaster University

Revision:
71:2f5caf7dd454
Parent:
25:27299423d813
diff -r ce33cdf741b5 -r 2f5caf7dd454 source/drivers/MicroBitDisplay.cpp
--- a/source/drivers/MicroBitDisplay.cpp	Wed Jul 13 12:18:50 2016 +0100
+++ b/source/drivers/MicroBitDisplay.cpp	Wed Jul 13 12:18:51 2016 +0100
@@ -139,7 +139,7 @@
         return;
 
     // Calculate the bitpattern to write.
-    uint32_t row_data = 0x01 << (microbitMatrixMap.rowStart + strobeRow);
+    uint32_t row_data = 0x01 << (matrixMap.rowStart + strobeRow);
     uint32_t col_data = 0;
 
     for (int i = 0; i < matrixMap.columns; i++)
@@ -208,7 +208,7 @@
 
 void MicroBitDisplay::renderGreyscale()
 {
-    uint32_t row_data = 0x01 << (microbitMatrixMap.rowStart + strobeRow);
+    uint32_t row_data = 0x01 << (matrixMap.rowStart + strobeRow);
     uint32_t col_data = 0;
 
     // Calculate the bitpattern to write.