keybrd library is an open source library for creating custom-keyboard firmware.
Вы не можете выбрать более 25 тем
Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Это архивный репозиторий. Вы можете его клонировать или просматривать файлы, но не вносить изменения или открывать задачи/запросы на слияние.
1234567891011121314151617181920212223 |
- #ifndef LED_AVR_H
- #define LED_AVR_H
- #include <Arduino.h>
- #include <inttypes.h>
- #include <LED.h>
-
- /* A LED_AVR object is an AVR pin that is used to power an LED on and off.
- DDRx Data Direction Register is configured as output in RowPort_AVR constructor.
- */
- class LED_AVR: public LED
- {
- private:
- volatile unsigned char& PORT;
- const uint8_t pin; //bitwise pin to LED
-
- public:
- LED_AVR(volatile unsigned char& PORTx, const uint8_t pin): PORT(PORTx), pin(pin) {}
-
- virtual void on();
-
- virtual void off();
- };
- #endif
|