Skip to content

Commit 0d401eb

Browse files
authored
Update Arduino_SensorKit.cpp
1 parent 20e0e85 commit 0d401eb

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

src/Arduino_SensorKit.cpp

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,7 @@
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+
U8X8_SSD1306_128X64_NONAME_HW_I2C Oled(U8X8_PIN_NONE);
55
DHT Environment(DHTPIN, DHTTYPE);
66
SensorKit_LIS3DHTR Accelerometer;
77
SensorKit_BMP280 Pressure;
8-
9-
SensorKit::SensorKit(){}
10-
11-
bool SensorKit::begin(){
12-
Oled.begin();
13-
Oled.enableUTF8Print();
14-
15-
Accelerometer.begin();
16-
delay(100);
17-
Accelerometer.setOutputDataRate(LIS3DHTR_DATARATE_50HZ);
18-
19-
Pressure.begin();
20-
Environment.begin();
21-
}
22-
23-
void SensorKit::end(){
24-
25-
}

0 commit comments

Comments
 (0)