-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVariables.h
47 lines (38 loc) · 934 Bytes
/
Variables.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
47
#ifndef VARIABLES_H_
#define VARIABLES_H_
#include "Sh1106Class.h"
#include "Sh1106Class.cpp"
#include "AS5048A.cpp"
#include "ShiftRegister.cpp"
static volatile uint16_t RotateLimit;
PIN_A0 WheelQ;
PIN_A1 WheelPL;
PIN_A2 WheelCLK;
PIN_B0 Reset;
PIN_B1 DataCommand;
PIN_B2 OledChipSelect;
PIN_B3 AngleInterfaceChipSelect;
PIN_B4 SPISS;
PIN_B5 SPIMosi;
PIN_B6 SPIMiso;
PIN_B7 SPISck;
PIN_D5 PWMOutput;
#define DebugMode__
#ifdef DebugMode__
Sh1106 debugDisplay(DataCommand,Reset,SPIMosi,OledChipSelect,SPISck,SPIMiso,SPISS);
#endif
AS5048A AS5048AChip(SPIMosi,SPISS,SPISck,SPIMiso,AngleInterfaceChipSelect);
ShiftRegisterButtons wheelButtons(WheelCLK,WheelPL,WheelQ);
Task getFirstKeyboardByte;
Task getSecondKeyboardByte;
Task setDataTask;
Task getDataFromAS;
enum class CalibrateStage
{
No = 0,
Left = 1,
Right = 2,
Calibrated = 3
};
CalibrateStage volatile calibrateStage = CalibrateStage::No;
#endif /* VARIABLES_H_ */