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);
66SensorKit_LIS3DHTR Accelerometer;
77SensorKit_BMP280 Pressure;
88
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-
159SensorKit::SensorKit (){}
1610
1711bool SensorKit::begin (){
18- pOled .begin ();
12+ Oled .begin ();
1913 Oled.enableUTF8Print ();
2014
21- pAccelerometer .begin ();
15+ Accelerometer .begin ();
2216 delay (100 );
23- pAccelerometer .setOutputDataRate (LIS3DHTR_DATARATE_50HZ);
17+ Accelerometer .setOutputDataRate (LIS3DHTR_DATARATE_50HZ);
2418
25- pPressure .begin ();
26- pEnvironment .begin ();
19+ Pressure .begin ();
20+ Environment .begin ();
2721}
2822
2923void SensorKit::end (){
3024
31- }
25+ }
You can’t perform that action at this time.
0 commit comments