keybrd library is an open source library for creating custom-keyboard firmware.
Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Repozitorijs ir arhivēts. Tam var aplūkot failus un to var klonēt, bet nevar iesūtīt jaunas izmaiņas, kā arī atvērt jaunas problēmas/izmaiņu pieprasījumus.
12345678910111213141516171819 |
- //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
- Key class name does not end in "Interface" because sketches define so many Key[] arrays.
- */
- class Key
- {
- public:
- virtual void press()=0; //send scancode to USB for press
- virtual void release()=0; //send scancode to USB for release
- };
- #endif
|