File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -6,26 +6,20 @@ DHT Environment(DHTPIN, DHTTYPE);
6
6
SensorKit_LIS3DHTR Accelerometer;
7
7
SensorKit_BMP280 Pressure;
8
8
9
- // Pointers to access them inside the class
10
- U8G2_SSD1306_128X64_NONAME_F_HW_I2C& pOled = Oled;
11
- SensorKit_LIS3DHTR& pAccelerometer = Accelerometer;
12
- SensorKit_BMP280& pPressure = Pressure;
13
- DHT& pEnvironment = Environment;
14
-
15
9
SensorKit::SensorKit (){}
16
10
17
11
bool SensorKit::begin (){
18
- pOled .begin ();
12
+ Oled .begin ();
19
13
Oled.enableUTF8Print ();
20
14
21
- pAccelerometer .begin ();
15
+ Accelerometer .begin ();
22
16
delay (100 );
23
- pAccelerometer .setOutputDataRate (LIS3DHTR_DATARATE_50HZ);
17
+ Accelerometer .setOutputDataRate (LIS3DHTR_DATARATE_50HZ);
24
18
25
- pPressure .begin ();
26
- pEnvironment .begin ();
19
+ Pressure .begin ();
20
+ Environment .begin ();
27
21
}
28
22
29
23
void SensorKit::end (){
30
24
31
- }
25
+ }
You can’t perform that action at this time.
0 commit comments