24 lines
303 B
C++
24 lines
303 B
C++
#ifndef BLINKLED
|
|
#define BLINKLED
|
|
|
|
#include <Arduino.h>
|
|
class BlinkLed
|
|
{
|
|
private:
|
|
PinStatus _ledStatus;
|
|
u_int8_t _pin;
|
|
/* data */
|
|
BlinkLed() { _ledStatus = LOW; }
|
|
|
|
public:
|
|
BlinkLed(u_int8_t pin);
|
|
~BlinkLed() {}
|
|
|
|
void on();
|
|
void off();
|
|
|
|
String ledStatus();
|
|
};
|
|
|
|
#endif
|