forked from bareboat-necessities/bbn_esp32_sensors_hub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmcu_sensors.h
41 lines (37 loc) · 985 Bytes
/
mcu_sensors.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef mcu_sensors_h
#define mcu_sensors_h
#include "i2c_sht30.h"
#include "i2c_qmp6988.h"
#include "i2c_bmp280.h"
#include "i2c_bme680.h"
#include "i2c_dht12.h"
#include "i2c_ads1115.h"
#include "i2c_bh1750fvi_tr.h"
#include "i2c_ain_4_20ma.h"
#include "i2c_sgp30.h"
#include "i2c_vl53l0x.h"
#include "i2c_ina219.h"
#include "gpio_pir_as312.h"
#include "gpio_tds_cqrsentds01.h"
#include "gpio_limit_switch.h"
#include "gpio_240_30_ohm_sensor.h"
void mcu_sensors_scan() {
i2c_ina219_try_init(&Wire1);
i2c_ads1115_try_init(&Wire1, G38, G39, 100000UL);
i2c_ain_4_20ma_try_init(&Wire1, G38, G39, 100000UL);
i2c_bmp280_try_init();
i2c_qmp6988_try_init();
i2c_bme680_try_init();
i2c_dht12_try_init();
i2c_sht30_try_init();
i2c_sgp30_try_init();
i2c_bh1750fvi_tr_try_init();
i2c_vl53l0x_try_init();
gpio_pir_as312_try_init();
gpio_tds_cqrsentds01_try_init();
gpio_limit_switch_try_init();
gpio_240_30_ohm_try_init();
}
void mcu_sensors_update() {
}
#endif