Welcome to mirror list, hosted at ThFree Co, Russian Federation.

defines.h - github.com/ClusterM/gpio2nesc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 90c296efe2ec9dab346e92181ebbf21b6079759b (plain)
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
#ifndef _DEFINES_H_
#define _DEFINES_H_

#define F_CPU 8000000L

#define TWI_PORT C
#define TWI_SCL_PIN 5
#define TWI_SDA_PIN 4

#define DETECT_PORT C
#define DETECT_PIN 3

#define RED_LED_PORT D
#define RED_LED_PIN 4
#define GREEN_LED_PORT D
#define GREEN_LED_PIN 3

#define BUTTON_A_PORT C
#define BUTTON_A_PIN 1
#define BUTTON_B_PORT B
#define BUTTON_B_PIN 4
#define BUTTON_X_PORT D
#define BUTTON_X_PIN 0
#define BUTTON_Y_PORT B
#define BUTTON_Y_PIN 5
#define BUTTON_UP_PORT B
#define BUTTON_UP_PIN 1
#define BUTTON_DOWN_PORT D
#define BUTTON_DOWN_PIN 6
#define BUTTON_LEFT_PORT B
#define BUTTON_LEFT_PIN 2
#define BUTTON_RIGHT_PORT D
#define BUTTON_RIGHT_PIN 7
#define BUTTON_SELECT_PORT C
#define BUTTON_SELECT_PIN 0
#define BUTTON_START_PORT C
#define BUTTON_START_PIN 2
#define BUTTON_L_PORT B
#define BUTTON_L_PIN 3
#define BUTTON_R_PORT B
#define BUTTON_R_PIN 0
#define BUTTON_ZL_PORT B
#define BUTTON_ZL_PIN 6
#define BUTTON_ZR_PORT B
#define BUTTON_ZR_PIN 7
#define BUTTON_HOME_PORT D
#define BUTTON_HOME_PIN 5

#endif