Files
dc-sensor/firmware/main/include/sensor.h
T
Sven Luethi 9bd0883aeb modified: Makefile
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
2024-08-01 23:32:24 +02:00

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