keybrd library is an open source library for creating custom-keyboard firmware.
Вы не можете выбрать более 25 тем
Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Это архивный репозиторий. Вы можете его клонировать или просматривать файлы, но не вносить изменения или открывать задачи/запросы на слияние.
12345678910111213141516171819202122 |
- #ifndef LED_UC_H
- #define LED_UC_H
- #include <Arduino.h>
- #include <inttypes.h>
- #include <LEDInterface.h>
-
- /* A LED_uC turns LED on and off.
- */
- class LED_uC: public LEDInterface
- {
- private:
- const uint8_t pin; //Aduino pin that is connected to an LED
-
- public:
- LED_uC(const uint8_t pin): pin(pin)
- {
- pinMode(pin, OUTPUT);//todo move to .cpp file
- }
- virtual void on();
- virtual void off();
- };
- #endif
|