init
This commit is contained in:
18
I2C/components/scd30_driver/scd30.h
Normal file
18
I2C/components/scd30_driver/scd30.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#ifndef SCD30_H
|
||||
#define SCD30_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
// Data structure to hold SCD30 sensor data
|
||||
typedef struct {
|
||||
float co2; // CO2 concentration in ppm
|
||||
float temp; // Temperature in degrees Celsius
|
||||
float humidity; // Relative humidity in percentage
|
||||
} scd30_data_t;
|
||||
|
||||
// Function prototypes
|
||||
void scd30_init(void);
|
||||
void scd30_start_measurement(void);
|
||||
int scd30_read_data(scd30_data_t *data);
|
||||
|
||||
#endif // SCD30_H
|
||||
Reference in New Issue
Block a user