AGirs
girs_pins_mega2560_rear.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Configuration for Arduino Mega2560, a custom "half-shield", designed
4 // to fit on a Mega2560, already having an Ethernet shield attached.
5 
6 #ifndef ARDUINO_AVR_MEGA2560
7 #error This file is for AVR_MEGA2560 only
8 #endif
9 
10 #define SIGNAL_LED_1 LED_BUILTIN // 13
11 #define SIGNAL_LED_2 16
12 #define SIGNAL_LED_3 17
13 #define SIGNAL_LED_4 30
14 
15 //#define SIGNAL_LED_5_GND 22
16 #define SIGNAL_LED_5 22
17 //#define SIGNAL_LED_6_GND 24
18 #define SIGNAL_LED_6 24
19 //#define SIGNAL_LED_7_GND 26
20 #define SIGNAL_LED_7 28
21 //#define SIGNAL_LED_8_GND 28
22 #define SIGNAL_LED_8 32
23 
24 // capture pin (ICP) 49
25 
26 #define IRSENSOR_1_PIN 49
27 //#ifdef IRSENSOR_1_PULLUP
28 // not presently implemented
29 //#define IRSENSOR_2_PIN 48
30 //#define IRSENSOR_2_PULLUP
31 
32 #define IRRECEIVER_1_PIN 47
33 //#define IRRECEIVER_1_PULLUP
34 #define IRRECEIVER_2_PIN IRSENSOR_1_PIN // Non-demodulating sensor
35 //#define IRRECEIVER_3_PIN 8 // 56kHz
36 //#define IRRECEIVER_4_PIN 6 // 433 MHz
37 //#define IRRECEIVER_5_PIN IRSENSOR_1_PIN // Non-demodulating sensor
38 
39 #define NON_MOD_PIN 39
40 
41 /* From http://busyducks.com/ascii-art-arduinos +-----+
42 
43  +----[PWR]-------------------| USB |--+
44  | +-----+ |
45  | GND/RST2 [ ] [ ] |
46  | MOSI2/SCK2 [ ] [ ] SCL[ ] | D0
47  | 5V/MISO2 [ ] [ ] SDA[ ] | D1
48  | AREF[ ] |
49  | GND[ ] |
50  | [ ]N/C SCK/13[ ]~| B7
51  | [ ]v.ref MISO/12[ ]~| B6
52  | [ ]RST MOSI/11[ ]~| B5
53  | [ ]3V3 +----------+ 10[ ]~| B4
54  | [ ]5v | ARDUINO | 9[ ]~| H6
55  | [ ]GND | MEGA | 8[ ]~| H5
56  | [ ]GND +----------+ |
57  | [ ]Vin 7[ ]~| H4
58  | 6[ ]~| H3
59  | [ ]A0 5[ ]~| E3
60  | [ ]A1 4[ ]~| G5
61  | [ ]A2 INT5/3[ ]~| E5
62  | [ ]A3 INT4/2[ ]~| E4
63  | [ ]A4 TX>1[ ]~| E1
64  | [ ]A5 RX<0[ ]~| E0
65  | [ ]A6 |
66  | [ ]A7 TX3/14[ ] | J1
67  | RX3/15[ ] | J0
68  | [ ]A8 TX2/16[ ] | H1
69  | [ ]A9 RX2/17[ ] | H0
70  | [ ]A10 TX1/INT3/18[ ] | D3
71  | [ ]A11 RX1/INT2/19[ ] | D2
72  | [ ]A12 I2C-SDA/INT1/20[ ] | D1
73  | [ ]A13 I2C-SCL/INT0/21[ ] | D0
74  | [ ]A14 |
75  | [ ]A15 | Ports:
76  | RST SCK MISO | 22=A0 23=A1
77  | ICSP [ ] [ ] [ ] | 24=A2 25=A3
78  | [ ] [ ] [ ] | 26=A4 27=A5
79  | GND MOSI 5V | 28=A6 29=A7
80  | G | 30=C7 31=C6
81  | N 5 5 4 4 4 4 4 3 3 3 3 3 2 2 2 2 5 | 32=C5 33=C4
82  | D 2 0 8 6 4 2 0 8 6 4 2 0 8 6 4 2 V | 34=C3 35=C2
83  | ~ ~ | 36=C1 37=C0
84  | @ # # # # # # # # # # # # # # # # @ | 38=D7 39=G2
85  | @ # # # # # # # # # # # # # # # # @ | 40=G1 41=G0
86  | ~ | 42=L7 43=L6
87  | G 5 5 4 4 4 4 4 3 3 3 3 3 2 2 2 2 5 | 44=L5 45=L4
88  | N 3 1 9 7 5 3 1 9 7 5 3 1 9 7 5 3 V | 46=L3 47=L2
89  | D | 48=L1 49=L0 SPI:
90  | | 50=B3 51=B2 50=MISO 51=MOSI
91  | 2560 ____________/ 52=B1 53=B0 52=SCK 53=SS
92  \_______________________/
93 
94 */