Gearchiveerd
1
0
This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
keybrd/src/Key.h

20 regels
580 B
C

2016-05-09 14:05:08 +00:00
//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
2016-09-25 04:27:06 +00:00
Key class name does not end in "Interface" because sketches define so many Key[] arrays.
2016-05-09 14:05:08 +00:00
*/
class Key
{
public:
virtual void press()=0; //send scancode to USB for press
virtual void release()=0; //send scancode to USB for release
};
#endif