-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
BoxCLI.h
46 lines (38 loc) · 907 Bytes
/
BoxCLI.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
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef BoxCLI_h
#define BoxCLI_h
#include "BaseHeader.h"
#include <SimpleCLI.h>
#include <EnhancedThread.h>
class BoxCLI : public EnhancedThread {
public:
void
begin(),
loop();
SimpleCLI cli;
private:
Command lastCmd;
Command cmdHelp;
Command cmdI2C;
Command cmdSpiRFID;
Command cmdBeep;
Command cmdRFID;
Command cmdLoad;
Command cmdI2S;
Command cmdSay;
Command cmdAudio;
void parse();
unsigned long
parseNumber(String number),
parseNumber(char* number),
parseNumber(char* number, char** rest);
void
execI2C(),
execSpiRFID(),
execBeep(),
execRFID(),
execLoad(),
execI2S(),
execSay(),
execAudio();
};
#endif