mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-29 15:42:20 +03:00
first
This commit is contained in:
31
include/items/vPwmOut.h
Normal file
31
include/items/vPwmOut.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
#include "Consts.h"
|
||||
#ifdef PwmOutEnable
|
||||
#include <Arduino.h>
|
||||
#include "Global.h"
|
||||
|
||||
class PwmOut;
|
||||
|
||||
typedef std::vector<PwmOut> MyPwmOutVector;
|
||||
|
||||
class PwmOut {
|
||||
public:
|
||||
|
||||
PwmOut(unsigned int pin, String key);
|
||||
|
||||
~PwmOut();
|
||||
|
||||
void execute(String state);
|
||||
|
||||
private:
|
||||
|
||||
unsigned int _pin;
|
||||
String _key;
|
||||
|
||||
};
|
||||
|
||||
extern MyPwmOutVector* myPwmOut;
|
||||
|
||||
extern void pwmOut();
|
||||
extern void pwmOutExecute();
|
||||
#endif
|
||||
Reference in New Issue
Block a user