ssd1306 stm32l010

Dependents:   oled_test7_16x24_010_1 i2c_HT16K33_test1_767_3 HAL_oled_16x24_010_1

Revision:
1:20e48680a5f8
Parent:
0:5d70351255d1
diff -r 5d70351255d1 -r 20e48680a5f8 SSD1308.h
--- a/SSD1308.h	Tue Aug 02 06:48:13 2022 +0000
+++ b/SSD1308.h	Thu Aug 04 14:35:32 2022 +0000
@@ -228,7 +228,9 @@
   *@param I2C &i2c reference to i2c,
   *@param uint8_t deviceAddress slaveaddress (8bit to use for the controller (0x78 by default, assumes D/C# (pin 13) grounded)
  */    
-    SSD1308( uint8_t address = SSD1308_DEF_SA);
+    //SSD1308( uint8_t address = SSD1308_DEF_SA);
+    SSD1308( I2C_HandleTypeDef* _hi2c , uint8_t address = SSD1308_DEF_SA );
+
 
 // High Level methods
 
@@ -374,6 +376,9 @@
     uint8_t _writeOpcode;  // contains the I2C address of the device
     
     //bool _inverted;        // inverted or normal text   
+    
+    I2C_HandleTypeDef* _hi2c;
+    
 };
 
 #endif