Skip to content

Commit 177173b

Browse files
authored
Add files via upload
1 parent 6a061a3 commit 177173b

File tree

2 files changed

+3
-29
lines changed

2 files changed

+3
-29
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-
}

src/Arduino_SensorKit.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
#include "Arduino_SensorKit_BMP280.h" // Pressure
1515
#include "Arduino_SensorKit_LIS3DHTR.h" // Accel
1616
#include "DHT.h" // Temp & Humidity
17-
#include "U8g2lib.h" // Oled Display
18-
17+
#include "U8x8lib.h" // Oled Display
1918

2019
//Defines
2120
#ifndef DHTTYPE
@@ -25,15 +24,8 @@
2524
#define DHTPIN 3
2625
#endif
2726

28-
class SensorKit {
29-
public:
30-
SensorKit();
31-
bool begin();
32-
void end();
33-
};
34-
3527
//Make the declared components from the .cpp to the sketch available
36-
extern U8G2_SSD1306_128X64_NONAME_F_SW_I2C Oled;
28+
extern U8X8_SSD1306_128X64_NONAME_HW_I2C Oled;
3729
extern SensorKit_LIS3DHTR Accelerometer;
3830
extern SensorKit_BMP280 Pressure;
3931
extern DHT Environment;

0 commit comments

Comments
 (0)