keybrd library is an open source library for creating custom-keyboard firmware.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

Key.h 580B

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