-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.cpp
58 lines (46 loc) · 1.46 KB
/
Config.cpp
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
48
49
50
51
52
53
54
55
56
57
58
#include "Config.h"
// Implementierung: OBJEKTE
extern Display d;
extern Player p;
extern Led led;
extern Mate mate;
extern Pilot m;
extern Ultrasonic us;
void pinModes() {
pinMode(LIGHT_BARRIER, INPUT_PULLUP);
pinMode(BATT_VOLTAGE, INPUT);
pinMode(POTI, INPUT);
pinMode(TYPE, INPUT_PULLUP);
pinMode(BIG_BUTTON, INPUT_PULLUP);
pinMode(SCHUSS_BUTTON, INPUT_PULLUP);
pinMode(BUTTON_1, INPUT_PULLUP);
pinMode(BUTTON_2, INPUT_PULLUP);
pinMode(BUTTON_3, INPUT_PULLUP);
pinMode(SWITCH_MOTOR, INPUT_PULLUP);
pinMode(SWITCH_SCHUSS, INPUT_PULLUP);
pinMode(SWITCH_KEEPER, INPUT_PULLUP);
pinMode(SWITCH_BOTTOM, INPUT_PULLUP);
pinMode(SWITCH_DEBUG, INPUT_PULLUP);
pinMode(SWITCH_MOTOR, INPUT_PULLUP);
pinMode(SWITCH_B, INPUT_PULLUP);
pinMode(SWITCH_A, INPUT_PULLUP);
pinMode(ROTARY_BUTTON, INPUT_PULLUP);
pinMode(ROTARY_A, INPUT_PULLUP);
pinMode(ROTARY_B, INPUT_PULLUP);
pinMode(BUZZER_ACTIVE, OUTPUT);
pinMode(INFO_LED, OUTPUT);
pinMode(BUZZER, OUTPUT);
pinMode(MATRIX_LED, OUTPUT);
pinMode(J_A8, INPUT);
pinMode(J_A9, INPUT);
pinMode(INT_BODENSENSOR, INPUT);
pinMode(INT_US, OUTPUT);
pinMode(SCHUSS, OUTPUT);
pinMode(BOTTOM_LED, OUTPUT);
pinMode(DRDY, INPUT);
pinMode(TILTSWITCH, INPUT_PULLUP);
pinMode(M0_CURR, INPUT);
pinMode(M1_CURR, INPUT);
pinMode(M2_CURR, INPUT);
pinMode(M3_CURR, INPUT);
}