keybrd library is an open source library for creating custom-keyboard firmware.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
Это архивный репозиторий. Вы можете его клонировать или просматривать файлы, но не вносить изменения или открывать задачи/запросы на слияние.

123456789101112131415161718
  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. */
  10. class Key
  11. {
  12. public:
  13. virtual void press()=0; //send scancode to USB for press
  14. virtual void release()=0; //send scancode to USB for release
  15. };
  16. #endif