mirror of
https://github.com/Lemonochrme/clover.git
synced 2025-06-08 16:50:50 +02:00
21 lines
No EOL
389 B
C++
21 lines
No EOL
389 B
C++
#ifndef _HEADER_COMPONENT
|
|
#define _HEADER_COMPONENT
|
|
#include <Arduino.h>
|
|
#include <any>
|
|
|
|
enum class ComponentType {
|
|
Digital,
|
|
Analog
|
|
};
|
|
|
|
class Component{
|
|
public:
|
|
Component(ComponentType ct, uint8_t p);
|
|
std::any getValue();
|
|
void sendValue(std::any data);
|
|
private:
|
|
ComponentType _type;
|
|
const uint8_t _pin;
|
|
};
|
|
|
|
#endif //_HEADER_COMPONENT
|