Skip to content

Commit 822762f

Browse files
authored
Changed U8G2 constructor from HW to SW
Constructor changed from U8G2_SSD1306_128X64_NONAME_F_HW_I2C to U8G2_SSD1306_128X64_NONAME_F_SW_I2C
1 parent 83139c4 commit 822762f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Arduino_SensorKit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "Arduino_Sensorkit.h"
22

33
//Declare component's classes
4-
U8G2_SSD1306_128X64_NONAME_F_HW_I2C Oled(U8G2_R0, SCL, SDA, U8X8_PIN_NONE);
4+
U8G2_SSD1306_128X64_NONAME_F_SW_I2C Oled(U8G2_R0, SCL, SDA, U8X8_PIN_NONE);
55
DHT Environment(DHTPIN, DHTTYPE);
66
SensorKit_LIS3DHTR Accelerometer;
77
SensorKit_BMP280 Pressure;

src/Arduino_SensorKit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class SensorKit {
3333
};
3434

3535
//Make the declared components from the .cpp to the sketch available
36-
extern U8G2_SSD1306_128X64_NONAME_F_HW_I2C Oled;
36+
extern U8G2_SSD1306_128X64_NONAME_F_SW_I2C Oled;
3737
extern SensorKit_LIS3DHTR Accelerometer;
3838
extern SensorKit_BMP280 Pressure;
3939
extern DHT Environment;

0 commit comments

Comments
 (0)