mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
32 lines
458 B
C++
32 lines
458 B
C++
#pragma once
|
|
#include <Arduino.h>
|
|
|
|
#include "Global.h"
|
|
|
|
class ButtonOut;
|
|
|
|
typedef std::vector<ButtonOut> MyButtonOutVector;
|
|
|
|
class ButtonOut {
|
|
public:
|
|
|
|
ButtonOut(String pin, boolean inv, String key, String type);
|
|
|
|
~ButtonOut();
|
|
|
|
void execute(String state);
|
|
|
|
private:
|
|
|
|
String _pin;
|
|
boolean _inv;
|
|
String _key;
|
|
String _type;
|
|
|
|
};
|
|
|
|
extern MyButtonOutVector* myButtonOut;
|
|
|
|
extern void buttonOut();
|
|
extern void buttonOutExecute();
|