2020-11-13 17:13:50 +03:00
|
|
|
#pragma once
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
|
|
|
|
#include "Global.h"
|
|
|
|
|
|
|
|
|
|
class ButtonOut;
|
|
|
|
|
|
|
|
|
|
typedef std::vector<ButtonOut> MyButtonOutVector;
|
|
|
|
|
|
|
|
|
|
class ButtonOut {
|
|
|
|
|
public:
|
|
|
|
|
|
2020-12-10 05:13:09 +03:00
|
|
|
ButtonOut(String pin, boolean inv, String key, String type);
|
2020-11-13 17:13:50 +03:00
|
|
|
|
|
|
|
|
~ButtonOut();
|
|
|
|
|
|
|
|
|
|
void execute(String state);
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
2020-12-10 02:11:47 +03:00
|
|
|
String _pin;
|
2020-11-13 17:13:50 +03:00
|
|
|
boolean _inv;
|
|
|
|
|
String _key;
|
2020-12-10 05:13:09 +03:00
|
|
|
String _type;
|
2020-11-13 17:13:50 +03:00
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern MyButtonOutVector* myButtonOut;
|
|
|
|
|
|
|
|
|
|
extern void buttonOut();
|
|
|
|
|
extern void buttonOutExecute();
|