keybrd library is an open source library for creating custom-keyboard firmware.
Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Ce dépôt est archivé. Vous pouvez voir les fichiers et le cloner, mais vous ne pouvez pas pousser ni ouvrir de ticket/demande d'ajout.
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
|