keybrd library is an open source library for creating custom-keyboard firmware.
Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
Tento repozitář je archivovaný. Můžete prohlížet soubory, klonovat, ale nemůžete nahrávat a vytvářet nové úkoly a požadavky na natažení.
123456789101112131415161718192021222324252627 |
- #ifndef LED_PCA9655E_H
- #define LED_PCA9655E_H
- #include <Arduino.h>
- #include <inttypes.h>
- #include <Wire.h>
- #include <LED.h>
- #include <PortWrite_PCA9655E.h>
-
- /* A LED_PCA9655E object is an PCA9655E pin that is connected to an LED indicator light.
- Input/Ouput Direction configuration are set to ouput in PortWrite_PCA9655E.begin() and PortRead_PCA9655E.begin().
- */
- class LED_PCA9655E: public LED
- {
- private:
- //PortIOE& port;
- //const uint8_t outputByteCommand; //General Purpose Input/Ouput register address
- PortWrite_PCA9655E& refPort;
- const uint8_t pin; //bit pattern, IOE pin to LED
-
- public:
- LED_PCA9655E(PortWrite_PCA9655E& refPort, const uint8_t pin)
- : refPort(refPort), pin(pin) {}
-
- virtual void on();
- virtual void off();
- };
- #endif
|