-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathUserInt.h
36 lines (28 loc) · 914 Bytes
/
UserInt.h
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
//=============================================================================
// FILE: UserInt.h
//
// This provides a user interface of some sort. Right now it's just the three
// LEDs on the SD Shield, but feel free to add an LCD shield with better
// status displays.
//=============================================================================
#ifndef __USERINT_H__
#define __USERINT_H__
typedef enum
{
UI_TRANSACTION_STOP,
UI_TRANSACTION_START,
UI_SD_REMOVED,
UI_SD_INSERTED,
} UiTransactionType;
class UserInt
{
public:
void sendEvent(UiTransactionType trans);
void sendEvent(UiTransactionType trans, char *text);
void poll(void);
static UserInt *getInstance(void);
private:
UserInt(void);
~UserInt(void);
};
#endif // __USERINT_H__