displaying on SSD1306, 128x64 pixels OLED

Dependencies:   microbit

Revision:
10:8bf77efd1579
Parent:
9:d15f84b277f3
Child:
12:b4d5e007640e
diff -r d15f84b277f3 -r 8bf77efd1579 Display.cpp
--- a/Display.cpp	Mon Feb 24 18:44:22 2020 +0000
+++ b/Display.cpp	Tue Feb 25 18:13:33 2020 +0000
@@ -12,7 +12,7 @@
     }
 
 /**
-  * clears the display and is buffer 
+  * Clears the display and its buffer 
   */
 void Display::clear() {
     uDisplay.image.clear();
@@ -20,7 +20,7 @@
     }
 
 /**
-  * the stick is a binary representaion of the led display
+  * The stick's length is represented by the count of digits being 1.
   * @param size in range [0,24]
   */
 void Display::setStick(uint8_t length) {
@@ -51,9 +51,9 @@
     }
 
 /**
-  * 25 bits showed in display as a whole.
+  * 25 bits showed in the display as a whole.
   *
-  * @param allBits contains the 25 bit to be showed
+  * @param bits25 contains the 25 bit to be showed
   */
 void Display::toRows(uint32_t bits25) {    
     showbit=bits25;
@@ -92,11 +92,11 @@
     }
 
 /**
-* binary Clock, hours in top rows (4 for multiplum of 10, 3 for remainer)
-* minuts in bottom rows (1 for multiplum of 10, 0 for remainer)
-*
-* @param minuts of the day
-*/
+  * Binary Clock, hours in top rows (4 for multiplum of 10, 3 for remainer)
+  * minuts in bottom rows (1 for multiplum of 10, 0 for remainer)
+  *
+  * @param minuts of the day
+  */
 void Display::vertClock(uint16_t minuts) {
     uint8_t hours = minuts/60;
     minuts -= 60*hours;
@@ -106,11 +106,12 @@
 }
     
 /**
-* binary Clock, hours in top rows (4)
-* minuts in rows 3 and 2  (3 for multiplum of 10, 2 for remainer)
-* seconds in rows 1 and 0 (1 for multiplum of 10, 0 for remainer) 
-* @param second of the day
-*/
+  * Binary Clock, hours in row 4 (top row)
+  * minuts in rows 3 and 2  (3 for multiplum of 10, 2 for remainer)
+  * seconds in rows 1 and 0 (1 for multiplum of 10, 0 for remainer) 
+  *
+  * @param second of the day
+  */
 void Display::vertSecClock(uint32_t seconds) {
     uint8_t hours = seconds/3600;
     uint8_t minuts = (seconds - 3600*hours)/60;