mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-07-20 22:08:46 -04:00
Added BME280 driver
This commit is contained in:
parent
6c9e0f1fb4
commit
596539f0cd
8 changed files with 463 additions and 16 deletions
|
@ -30,7 +30,12 @@ void config_init(void) {
|
|||
}
|
||||
|
||||
void config_init_ephemeral(void) {
|
||||
config_user_jobs_enabled = CONFIG_USER_JOBS_ENABLED;
|
||||
config_gps_nmea_output = CONFIG_GPS_NMEA_NONE;
|
||||
config_sensors_enabled = CONFIG_SENSORS_ENABLED;
|
||||
config_sensor_interval_ms = CONFIG_SENSORS_INTERVAL_MS;
|
||||
config_sensor_bme280_enabled = CONFIG_BME280_ENABLED;
|
||||
config_sensor_bme280_cs_pin = USR_IO_1;
|
||||
}
|
||||
|
||||
void config_apply(void) {
|
||||
|
|
|
@ -74,8 +74,14 @@ uint8_t config_gps_nmea_output;
|
|||
uint8_t config_bluetooth_mode;
|
||||
uint8_t config_serial_baudrate;
|
||||
|
||||
bool config_user_jobs_enabled;
|
||||
bool config_output_diagnostics;
|
||||
|
||||
bool config_sensors_enabled;
|
||||
int32_t config_sensor_interval_ms;
|
||||
bool config_sensor_bme280_enabled;
|
||||
uint8_t config_sensor_bme280_cs_pin;
|
||||
|
||||
void config_init(void);
|
||||
void config_init_ephemeral(void);
|
||||
void config_apply(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue