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