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