Skip to content

Commit 607c3c2

Browse files
authored
Fixed HW I2C for the display
1 parent 413fb85 commit 607c3c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Arduino_SensorKit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#include "Arduino_Sensorkit.h"
22

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

99
//Pointers to access them inside the class
10-
U8G2_SSD1306_128X64_NONAME_F_SW_I2C& pOled = Oled;
10+
U8G2_SSD1306_128X64_NONAME_F_HW_I2C& pOled = Oled;
1111
SensorKit_LIS3DHTR& pAccelerometer = Accelerometer;
1212
SensorKit_BMP280& pPressure = Pressure;
1313
DHT& pEnvironment = Environment;

src/Arduino_SensorKit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SensorKit {
3636
};
3737

3838
//Make the declared components from the .cpp to the sketch available
39-
extern U8G2_SSD1306_128X64_NONAME_F_SW_I2C Oled;
39+
extern U8G2_SSD1306_128X64_NONAME_F_HW_I2C Oled;
4040
extern SensorKit_LIS3DHTR Accelerometer;
4141
extern SensorKit_BMP280 Pressure;
4242
extern DHT Environment;

0 commit comments

Comments
 (0)