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.
123456789101112131415161718192021 |
- #ifndef PORT_SHIFTREGS_H
- #define PORT_SHIFTREGS_H
- #include <Arduino.h>
- #include <inttypes.h>
- #include <SPI.h>
- #include <PortWriteInterface.h>
-
- /* Port_ShiftRegs
- shift register RCLK pin a.k.a. SS or ST
- */
- class Port_ShiftRegs : public PortWriteInterface
- {
- private:
- const uint8_t slaveSelect; //controller-pin number connected to shift register RCLK
- uint8_t outputVal; //bit pattern for LEDs
- public:
- Port_ShiftRegs(const uint8_t slaveSelect);
- void begin();
- void write(const uint8_t pin, const bool logicLevel);
- };
- #endif
|