-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathKeyboardShield.h
More file actions
47 lines (34 loc) · 811 Bytes
/
KeyboardShield.h
File metadata and controls
47 lines (34 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
Project: 1Sheeld Library
File: KeyboardShield.h
Version: 1.0
Compiler: Arduino avr-gcc 4.3.2
Author: Integreight
Date: 2014.5
*/
#ifndef Keyboard_h
#define Keyboard_h
#include "ShieldParent.h"
//Input Function ID
#define KEYBOARD_GET_CHAR 0x01
class KeyboardShield : public ShieldParent
{
public:
//Constructor
KeyboardShield();
//Getter
char getCharacter();
//setOnChange Function for User Function
void setOnButtonChange(void (*)(char));
private:
//Reserve Variable
char character;
//Boolean for the setOnChange Function
bool isCallBackAssigned;
//Process Input Data
void processData();
void (*buttonChangeCallBack)(char);
};
//Extern Object
extern KeyboardShield AsciiKeyboard;
#endif