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
  1. //header-guard name needs to be uinique
  2. //arduino\hardware\teensy\avr\cores\teensy\keylayouts.h has #define KEY_H
  3. //Keypad library has a header file Key.h
  4. #ifndef KEY_H_keybrd
  5. #define KEY_H_keybrd
  6. #include <Arduino.h>
  7. #include <inttypes.h>
  8. /* Key is an interface class
  9. Key class name does not end in "Interface" because sketches define so many Key[] arrays.
  10. */
  11. class Key
  12. {
  13. public:
  14. virtual void press()=0; //send scancode to USB for press
  15. virtual void release()=0; //send scancode to USB for release
  16. };
  17. #endif