Files
AHome/ESP_MidRoom/include/leds.h
2021-06-23 16:18:51 +03:00

20 lines
341 B
C++

#ifndef __LEDS_H__
#define __LEDS_H__
#include <Arduino.h>
class leds
{
private:
int ledPin;
bool inv, state;
int onMS;
unsigned long curMS;
byte bright;
public:
leds(int ledPin, int onms = 300, byte bright = 255, bool inverse = false);
//~leds();
void start();
void tick();
};
#endif