a partial porting OLED_I2C library

Dependents:   ou_mbed_oled ou_mbed_tmp102

Revision:
3:909dd63644b4
Parent:
2:e64ae00d801c
--- a/oled_i2c.h	Tue Jun 19 05:49:09 2018 +0000
+++ b/oled_i2c.h	Fri Jun 29 09:11:06 2018 +0000
@@ -141,38 +141,9 @@
     /** Initialization */
     void init(void);
     
-    /** send SSD1306 command 
-     *
-     * @param a the SSD1306 command byte to send out
-     */
-    void comm_out(uint8_t a);
-    
-    /** send many SSD1306 commands in one I2C transaction
-     *
-     * @param pPage pointer to command buffer
-     * @param size the command buffer size
-     */
-    void comm_page_out(uint8_t* pPage, uint8_t size);
-    
-    /** send SSD1306 data
-     *
-     * @param a the SSD1306 data byte to send out
-     */
-    void data_out(uint8_t a);
-    
-    /** send many SSD1306 data bytes in one I2c transaction
-     *
-     * @param pPage pointer to data buffer
-     * @param size the data buffer size
-     */
-    void data_page_out(uint8_t* pPage, uint8_t size);
-    
     /** send init command to SSD1306 */
     void init_oled(void);
     
-    /** make all pixel on or off acording to screen buffer */
-    void pixel_on(void);
-    
     /** update screen buffer */
     void update(void);
     
@@ -255,6 +226,36 @@
         uint8_t numchars;
     } cfont;
     uint8_t scrbuf[SSD1306_MEM_SIZE];
+    
+    /** send SSD1306 command 
+     *
+     * @param a the SSD1306 command byte to send out
+     */
+    void comm_out(uint8_t a);
+    
+    /** send many SSD1306 commands in one I2C transaction
+     *
+     * @param pPage pointer to command buffer
+     * @param size the command buffer size
+     */
+    void comm_page_out(uint8_t* pPage, uint8_t size);
+    
+    /** send SSD1306 data
+     *
+     * @param a the SSD1306 data byte to send out
+     */
+    void data_out(uint8_t a);
+    
+    /** send many SSD1306 data bytes in one I2c transaction
+     *
+     * @param pPage pointer to data buffer
+     * @param size the data buffer size
+     */
+    void data_page_out(uint8_t* pPage, uint8_t size);
+    
+    /** make all pixel on or off acording to screen buffer */
+    void pixel_on(void);
+    
 };
 
 #endif