Driver for the Seeedstudio RGB OLED module for the xadow M0

Revision:
17:1bcdc92af126
Parent:
13:8dd215952d76
--- a/src/SSD1331.cpp	Thu Dec 08 22:08:16 2016 +0000
+++ b/src/SSD1331.cpp	Sat Dec 10 22:51:06 2016 +0000
@@ -157,7 +157,6 @@
 
     sendCmd(CMD_FILL_WINDOW, ENABLE_FILL);//fill window
     sendCmd(cmd, 11);
-    wait(0.05); 
 }
 
 //------------------------------------------------------------------------------------
@@ -172,7 +171,6 @@
     
     uint8_t cmd[7] = { CMD_COPY_WINDOW, x0, y0, x1, y1, x2, y2};
     sendCmd(cmd, 7);
-    wait(0.05); 
 }
 
 //------------------------------------------------------------------------------------
@@ -185,7 +183,6 @@
     
     uint8_t cmdBuffer[5] = { CMD_DIM_WINDOW, x0, y0, x1, y1 };
     sendCmd(cmdBuffer, 5); //Send buffer
-    wait(0.05); 
 }
 
 //------------------------------------------------------------------------------------
@@ -197,8 +194,7 @@
     if (y1 >= RGB_OLED_HEIGHT) y1 = RGB_OLED_YMAX;
     
     uint8_t cmdBuffer[5] = { CMD_CLEAR_WINDOW, x0, y0, x1, y1 };
-    sendCmd(cmdBuffer, 5); //Send buffer
-    wait(0.05);  
+    sendCmd(cmdBuffer, 5); //Send buffer 
 }
 
 //------------------------------------------------------------------------------------
@@ -218,7 +214,7 @@
 void SSD1331::setScrolling(ScrollDirection direction, uint8_t rowAddr, uint8_t rowNum, ScrollInterval interval)
 {
     uint8_t scolling_horizontal = 0x0;
-    uint8_t scolling_vertical = 0x0;
+    uint8_t scolling_vertical   = 0x0;
     switch(direction){
         case SD_Horizontal:
             scolling_horizontal = 0x01;