2016-07-13 23:58:50 +00:00
|
|
|
#ifndef LED_UC_H
|
|
|
|
#define LED_UC_H
|
2016-06-18 22:32:21 +00:00
|
|
|
#include <Arduino.h>
|
|
|
|
#include <inttypes.h>
|
2016-09-25 03:58:54 +00:00
|
|
|
#include <LEDInterface.h>
|
2016-06-18 22:32:21 +00:00
|
|
|
|
2016-07-18 02:03:03 +00:00
|
|
|
/* A LED_uC turns LED on and off.
|
2016-06-18 22:32:21 +00:00
|
|
|
*/
|
2016-09-25 03:58:54 +00:00
|
|
|
class LED_uC: public LEDInterface
|
2016-06-18 22:32:21 +00:00
|
|
|
{
|
|
|
|
private:
|
2016-11-12 16:45:48 +00:00
|
|
|
const uint8_t pin; //Aduino pin number connected to an LED
|
2016-06-18 22:32:21 +00:00
|
|
|
public:
|
2016-11-12 16:45:48 +00:00
|
|
|
LED_uC(const uint8_t pin);
|
2016-06-18 22:32:21 +00:00
|
|
|
virtual void on();
|
|
|
|
virtual void off();
|
|
|
|
};
|
|
|
|
#endif
|