-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPinIn.h
32 lines (26 loc) · 884 Bytes
/
PinIn.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef PININ_H
#define PININ_H
#include "Enums.h"
#include "Sensor.h"
// NOTE: The PinIn and PinOut modules are more or less an example of Sensor and Output modules.
// One can use these as a stub to include new Sensors/Outputs and busses
class PinIn : public Sensor
{
public:
PinIn( const uint8_t _arrPins[], const uint8_t _nPinCount, const uint8_t _nInterval );
//virtual ~Output();
public:
virtual String getId( uint8_t _nSensor = 0 );
virtual int16_t getValue( uint8_t _nSensor = 0 );
virtual int16_t getFactor( uint8_t _nSensor = 0 );
virtual uint16_t getInterval( uint8_t _nSensor = 0 );
virtual Unit::Enum getUnit( uint8_t _nSensor = 0 );
private:
uint8_t m_nPin;
int16_t m_nThreshold;
};
/*
(spacestate) switch
joystick
*/
#endif