keybrd library is an open source library for creating custom-keyboard firmware.
Вы не можете выбрать более 25 тем
Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Это архивный репозиторий. Вы можете его клонировать или просматривать файлы, но не вносить изменения или открывать задачи/запросы на слияние.
12345678910111213141516171819202122 |
- #ifndef PORT_SHIFTREGS_H
- #define PORT_SHIFTREGS_H
- #include <Arduino.h>
- #include <inttypes.h>
- #include <SPI.h>
- #include "PortWriteInterface.h"
-
- /* Port_ShiftRegs
- slaveSelect is Arduino-pin number connected to shift register RCLK pin a.k.a. SS or ST
- */
- class Port_ShiftRegs : public PortWriteInterface
- {
- private:
- const uint8_t slaveSelect; //controller-pin number
- uint8_t outputVal; //bit pattern for LEDs
- public:
- Port_ShiftRegs(const uint8_t slaveSelect);
- void begin();
- void writeLow(const uint8_t pin);
- void writeHigh(const uint8_t pin);
- };
- #endif
|