keybrd library is an open source library for creating custom-keyboard firmware.
您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
123456789101112131415161718 |
- //header-guard name needs to be uinique
- //arduino\hardware\teensy\avr\cores\teensy\keylayouts.h has #define KEY_H
- //Keypad library has a header file Key.h
- #ifndef KEY_H_keybrd
- #define KEY_H_keybrd
-
- #include <Arduino.h>
- #include <inttypes.h>
-
- /* Key is an interface class
- */
- class Key
- {
- public:
- virtual void press()=0; //send scancode to USB for press
- virtual void release()=0; //send scancode to USB for release
- };
- #endif
|