AGirs
girs_pins_default.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Configuration for Arduino Uno and similar.
4 
5 #ifdef ARDUINO_AVR_NANO
6 #error This file is not for Nano
7 #elif defined(ARDUINO_AVR_MICRO)
8 #error This file is not for Micro
9 #endif
10 
11 #define SIGNAL_LED_1 13
12 #define SIGNAL_LED_2 A1
13 #define SIGNAL_LED_3 A2
14 #define SIGNAL_LED_4 A3
15 #define SIGNAL_LED_5 A0
16 #define SIGNAL_LED_6 6
17 #define SIGNAL_LED_7 7
18 #define SIGNAL_LED_8 108 // dummy
19 #ifndef NON_MOD
20 //#define SIGNAL_LED_8 9
21 #endif
22 
23 #define IRSENSOR_1_PIN 8
24 // capture pin (ICP) 8/4/49
25 //#define IRSENSOR_1_PULLUP
26 
27 #define IRRECEIVER_1_PIN 5
28 //#define IRRECEIVER_1_PULLUP
29 #define IRRECEIVER_2_PIN 4
30 #define IRRECEIVER_3_PIN 9
31 #define IRRECEIVER_4_PIN 8 // Non-demodulating sensor
32 //#define IRRECEIVER_4_PIN IRSENSOR_1_PIN // Non-demodulating sensor
33 
34 // Send pin 3/9
35 
36 #define NON_MOD_PIN 10
37 
38 /* From http://busyducks.com/ascii-art-arduinos +-----+
39 
40  +----[PWR]-------------------| USB |--+
41  | +-----+ |
42  | GND/RST2 [ ][ ] |
43  | MOSI2/SCK2 [ ][ ] A5/SCL[ ] | C5
44  | 5V/MISO2 [ ][ ] A4/SDA[ ] | C4
45  | AREF[ ] |
46  | GND[ ] |
47  | [ ]N/C SCK/13[ ] | B5
48  | [ ]v.ref MISO/12[ ] | .
49  | [ ]RST MOSI/11[ ]~| .
50  | [ ]3V3 +---+ 10[ ]~| .
51  | [ ]5v | A | 9[ ]~| .
52  | [ ]GND -| R |- 8[ ] | B0
53  | [ ]GND -| D |- |
54  | [ ]Vin -| U |- 7[ ] | D7
55  | -| I |- 6[ ]~| .
56  | [ ]A0 -| N |- 5[ ]~| .
57  | [ ]A1 -| O |- 4[ ] | .
58  | [ ]A2 +---+ INT1/3[ ]~| .
59  | [ ]A3 INT0/2[ ] | .
60  | [ ]A4/SDA RST SCK MISO TX>1[ ] | .
61  | [ ]A5/SCL [ ] [ ] [ ] RX<0[ ] | D0
62  | [ ] [ ] [ ] |
63  | UNO_R3 GND MOSI 5V ____________/
64  \_______________________/
65 
66 */