-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommands.h
More file actions
35 lines (29 loc) · 907 Bytes
/
commands.h
File metadata and controls
35 lines (29 loc) · 907 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
#ifndef COMMANDS_H
#define COMMANDS_H
#ifdef __cplusplus
extern "C"{
#endif
int analogInPin;
const int ledSegmA = 2;
const int ledSegmB = 3;
const int ledSegmC = 4;
const int ledSegmD = 5;
const int ledSegmE = 6;
const int ledSegmF = 7;
const int ledSegmG = 8;
const int ledSegmDP = 9;
const int pushButtonPin = 8;
const int ledPwmRedPin = 9;
const int ledPwmGrnPin = 10;
const int ledPwmBluPin = 11;
const int ledDigitalPin = 13; // the number of the LED pin
void CMD_generalParse(char * cmd, unsigned char len);
void CMD_writeDigitalParse(char * cmd, unsigned char len);
void CMD_writeAnalogParse(char * cmd, unsigned char len);
void CMD_writeHexValue(char * cmd, unsigned char len);
void CMD_readDigital(char * cmd, unsigned char len);
void CMD_readAnalog(char * cmd, unsigned char len);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* COMMANDS_H */