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í.
1234567891011121314151617181920 |
- #ifndef PORTWRITEINTERFACE_H
- #define PORTWRITEINTERFACE_H
- #include <Arduino.h>
- #include <inttypes.h>
-
- /*
- Port classes are the keybrd library's interface to MOSI shift registers i.e. Port_ShiftRegs
-
- Port classes that can read & write, inherit from PortInterface.
- Port classes that can only write, inherit from PortWriteInterface.
-
- write() interface emulates Arduino's digitalWrite().
- */
- class PortWriteInterface
- {
- public:
- virtual void setLow(const uint8_t pin)=0;
- virtual void setHigh(const uint8_t pin)=0;
- };
- #endif
|