mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
33 lines
540 B
C++
33 lines
540 B
C++
#pragma once
|
|
#include <Arduino.h>
|
|
|
|
#include "Global.h"
|
|
|
|
class ButtonOut;
|
|
|
|
typedef std::vector<ButtonOut> MyButtonOutVector;
|
|
|
|
class ButtonOut {
|
|
public:
|
|
|
|
ButtonOut(unsigned int pin, boolean inv, String key);
|
|
|
|
~ButtonOut();
|
|
|
|
void init();
|
|
void execute(String state);
|
|
|
|
private:
|
|
|
|
unsigned int _pin;
|
|
boolean _inv;
|
|
String _key;
|
|
|
|
void addNewDelOldData(const String filename, size_t maxPoints, String payload);
|
|
};
|
|
|
|
extern MyButtonOutVector* myButtonOut;
|
|
|
|
extern void buttonOut();
|
|
extern void buttonOutExecute();
|