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