Archived
1
0
This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
keybrd/src/LED_uC.h

23 lines
501 B
C
Raw Normal View History

2016-07-13 23:58:50 +00:00
#ifndef LED_UC_H
#define LED_UC_H
#include <Arduino.h>
#include <inttypes.h>
2016-09-25 03:58:54 +00:00
#include <LEDInterface.h>
2016-07-18 02:03:03 +00:00
/* A LED_uC turns LED on and off.
*/
2016-09-25 03:58:54 +00:00
class LED_uC: public LEDInterface
{
private:
2016-07-18 02:03:03 +00:00
const uint8_t pin; //Aduino pin that is connected to an LED
public:
2016-07-13 23:58:50 +00:00
LED_uC(const uint8_t pin): pin(pin)
{
pinMode(pin, OUTPUT);//todo move to .cpp file
}
virtual void on();
virtual void off();
};
#endif