mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
28 lines
389 B
C
28 lines
389 B
C
|
|
#ifdef EnableInput
|
||
|
|
#pragma once
|
||
|
|
#include <Arduino.h>
|
||
|
|
|
||
|
|
#include "Consts.h"
|
||
|
|
#include "Global.h"
|
||
|
|
|
||
|
|
class Input;
|
||
|
|
|
||
|
|
typedef std::vector<Input> MyInputVector;
|
||
|
|
|
||
|
|
class Input {
|
||
|
|
public:
|
||
|
|
Input(String key, String widget);
|
||
|
|
~Input();
|
||
|
|
|
||
|
|
void execute(String value);
|
||
|
|
|
||
|
|
private:
|
||
|
|
String _key;
|
||
|
|
};
|
||
|
|
|
||
|
|
extern MyInputVector* myInput;
|
||
|
|
|
||
|
|
extern void inputValue();
|
||
|
|
extern void inputExecute();
|
||
|
|
#endif
|