deleted: main/include/dht.h new file: main/include/leds.h modified: main/include/sensor.h deleted: main/src/dht.c new file: main/src/leds.c modified: main/src/main.c modified: main/src/sensor.c
24 lines
410 B
C
24 lines
410 B
C
#ifndef SENSOR_H
|
|
#define SENSOR_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Function to initialize the sensor
|
|
void initSensor(void);
|
|
|
|
// Function to get the current humidity level
|
|
// Returns the humidity as a percentage (0-100)
|
|
float getHumidity(void);
|
|
|
|
// Function to get the current temperature
|
|
// Returns the temperature in degrees Celsius
|
|
float getTemperature(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|