mirror of
https://github.com/MOSH-Insa-Toulouse/5ISS-2024-2025-MARIN--MULLER-BOUJON.git
synced 2025-06-08 14:00:49 +02:00
19 lines
No EOL
300 B
C++
19 lines
No EOL
300 B
C++
#ifndef HEADER_SENSOR
|
|
#define HEADER_SENSOR
|
|
|
|
#include <Arduino.h>
|
|
|
|
constexpr uint8_t SENSOR_PIN = 34;
|
|
constexpr float R0 = 0.8;
|
|
|
|
class Sensor {
|
|
public:
|
|
Sensor();
|
|
void init(const uint8_t pin);
|
|
float get_analog();
|
|
float get_RSR0();
|
|
private:
|
|
uint8_t _pin;
|
|
};
|
|
|
|
#endif // HEADER_SENSOR
|