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í.
12345678910111213141516171819202122 |
- #ifndef LED_SHIFTREGS_H
- #define LED_SHIFTREGS_H
- #include <Arduino.h>
- #include <inttypes.h>
- #include <SPI.h>
- #include <LEDInterface.h>
-
- /* A LED_ShiftRegs turns LED on and off.
- shift register RCLK pin a.k.a. SS or ST
- */
- class LED_ShiftRegs: public LEDInterface
- {
- private:
- const uint8_t slaveSelect;//controller pin number connected to shift register RCLK
- const uint8_t pin; //bit pattern, shift register pin that is connected to an LED
- public:
- LED_ShiftRegs(const uint8_t slaveSelect, const uint8_t pin);
- void begin();
- virtual void on();
- virtual void off();
- };
- #endif
|