Project

General

Profile

Statistics
| Revision:

root / trunk / code / projects / colonet / utilities / manual_control / manualControlRobot / pindefs_ff.h @ 13

History | View | Annotate | Download (1.26 KB)

1
// Motors
2
#define RIGHT 0 /* PIN_D0 output */
3
#define LEFT  1 /* PIN_D1 output */
4

    
5
// Sensors
6

    
7
/// Monkey
8
/* analog input */
9
#define MONKI AN0 /* input */
10
//#define MONKI 0x00 /* input */
11

    
12
//white
13
#define MONK0 PIN_C4 /*0b01100*/ /* output          A4           <-  */
14
//blue
15
#define MONK1 PIN_C3 /*0b01011*/ /* output          A3           <-  */
16
//green - on/off
17
#define MONKL PIN_C2 /*0b01010*/ /* output          A2           <-  */
18

    
19
//white2
20
#define MONK2 PIN_C6 /*0b01110*/ /* white output                 A6        */
21
//blue2
22
#define MONK3 PIN_C5 /*0b01101*/ /* blue output                A5   */
23

    
24

    
25
//old constants
26

    
27
//data pin
28
//#define MONKI 0 /* PIN_A5  input */
29

    
30
//white
31
//#define MONK0 3/* PIN_E0 output */
32
//blue
33
//#define MONK1 2/* PIN_E1 output */
34
//white2
35
//#define MONK2 5/* PIN_D2 white output */
36
//blue2
37
//#define MONK3 4/* PIN_D3 blue output */
38

    
39
//green - on/off
40
//#define MONKL 1/*PIN_E2 output */
41

    
42
/// Bump
43
//#define BMPBL PIN_D4 /* input */
44
//#define BMPBR PIN_D5 /* input */
45
//#define BMPFL PIN_D6 /* input */
46
//#define BMPFR PIN_D7 /* input */
47

    
48
/// Other Sensors
49
//#define PYRO  0 /* PIN_A0 input */
50
//#define RANGE 1 /* PIN_A1 input */
51

    
52
// Wireless
53
//#define RXPOW 2 /* PIN_A2 input */
54
//#define TX_EN PIN_A3 /* output */ //// might be trouble