-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig_328.h
54 lines (50 loc) · 1.15 KB
/
config_328.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
48
49
50
51
52
53
54
// axis config
#define PIN_Z_A PD0 // D0
#define PIN_Z_B PD1 // D1
#define PIN_Z_Z PD2 // D2
#define PIN_X_A PD3 // D3
#define PIN_X_B PD4 // D4
#define PIN_X_Z PD5 // D5
#define PIN_W_A PC0 // A0
#define PIN_W_B PC1 // A1
#define PIN_W_Z PC2 // A2
#define PIN_C_A PD6 // D6
#define PIN_C_B PD7 // D7
#define PIN_C_Z PC3 // A3
// axis reset buttons
#define PIN_Z_RESET 8 // PB0 - D8
#define PIN_X_RESET PB1 // D9
#define PIN_W_RESET PB5 // PB4 - D13
#define PIN_C_RESET PC4 // A4
// MAX7219 output pins
#define PIN_LED_DATA 12 // PB4 - D12
#define PIN_LED_CLK 11 // PB3 - D11
#define PIN_LED_CS 10 // PB2 - D10
// units button
#define PIN_UNITS PC5 // A5
/* pin outs by pin code:
* PB0 - PIN_Z_RESET
* PB1 - PIN_X_RESET
* PB2 - PIN_LED_CS
* PB3 - PIN_LED_DATA
* PB4 - PIN_W_RESET
* PB5 - PIN_LED_CLK
* PB6 - reserved for oscillator
* PB7 - reserved for oscillator
* PC0 - PIN_W_A
* PC1 - PIN_W_B
* PC2 - PIN_W_Z
* PC3 - PIN_C_Z
* PC4 - PIN_C_RESET
* PC5 - PIN_UNITS
* PC6 - reserved for RESET
* PC7 - ???
* PD0 - PIN_Z_A
* PD1 - PIN_Z_B
* PD2 - PIN_Z_Z
* PD3 - PIN_X_A
* PD4 - PIN_X_B
* PD5 - PIN_X_Z
* PD6 - PIN_C_A
* PD7 - PIN_C_B
*/