keybrd library is an open source library for creating custom-keyboard firmware.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
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
|