Pin Definitions

Pin Definition Table

DeviceNameArduino PinAtMega2560 PinAtMega 2560 PortDescription
AtMega2560MOSI5121PB2SPI communication line
AtMega2560MISO5022PB3SPI commuication line
AtMega2560RESET30RESETSPI Reset
AtMega2560SCK5220PB1SPI Serial Clock
Level ShifterLVL_SHIFT_EN26PE4Controls OE Pin
ScreenTFT_PWR_EN41PG5Controls high side mosfet controlling LED voltage. Set low to enable power
ScreenTFT_RESET2971PA7LCD Reset Pin
ScreenTFT_DC2872PA6LCD DC Pin
ScreenTFT_CS2773PA5LCD Chip Select Pin
RFM95RFM_PWR_EN55PE3Controls high side mosfet controlling RFM95 voltage. Set low to enable power
RFM95RFM_INT37PE5RFM95 interrupt pin
RFM95RFM_CS1023PB4RFM95 chip select pin
RFM95RFM_RESET4935PL0RFM95 reset pin
DS1307SDA2044PD1Real Time Clock I2C Data line
DS1307SCL2143PD0Real Time Clock I2C Clock line
TrackpadTP_RESET2575PA3Trackpad Reset Line
TrackpadTP_SHUTDOWN2476PA2Trackpad Shutdown Line
TrackpadTP_CS4737PL2Trackpad Chip Select Pin
TrackpadTP_BUTTON2377PA1Input pin detecting mechanical press of trackpad button
TrackpadTP_MOTION4836PL1Trackpad Motion Pin
SD CardSD_CS2278PA0microSD card Chip Select Pin
SD CardDET_CARD3970PG2Input pin pulls high when card is inserted
KeypadROW_13060PC7Keypad Row Pin
KeypadROW_23159PC6Keypad Row Pin
KeypadROW_33258PC5Keypad Row Pin
KeypadROW_43357PC4Keypad Row Pin
KeypadROW_53456PC3Keypad Row Pin
KeypadCOL_13555PC2Keypad Column Pin
KeypadCOL_23654PC1Keypad Column Pin
KeypadCOL_33753PC0Keypad Column Pin
KeypadCOL_44052PG1Keypad Column Pin
KeypadCOL_54151PG0Keypad Column Pin
KeypadCOL_63850PD7Keypad Column Pin
KeypadCOL_74242PL7Keypad Column Pin
KeypadCOL_84440PL5Keypad Column Pin
KeypadCOL_94539PL4Keypad Column Pin
KeypadCOL_104638PL3Keypad Column Pin
BatteryBAT_PINA790PF7Analog Voltage Read on VBAT
Test PointTP13PE1TX
Test PointTP22PE0RX
Test PointTP3
Test PointTP4AtMega16U2 5V
Test PointTP5VUSB
Test PointTP6VSYS
Test PointTP75V
Test PointTP8VBAT
Test PointTP9GND
Test PointTP10USB Data Negative
Test PointTP11USB Data Positive
Test PointTP12AtMega16U2 VUSB
Test PointTP133V3

Arduino Full Pin Defiintion Code Snippet

//include libraries

//pin defintions
#define LVL_SHIFT_EN 2

#define TFT_PWR_EN 4
#define TFT_RESET 29
#define TFT_DC 28
#define TFT_CS 27

#define RFM_PWR_EN 5
#define RFM_INT 3
#define RFM_CS 10

#define TP_RESET 25
#define TP_SHUTDOWN 24
#define TP_CS 47
#define TP_BUTTON 23
#define TP_MOTION 48

#define SD_CS 22
#define DET_CARD 39

#define ROW_1 30
#define ROW_2 31
#define ROW_3 32
#define ROW_4 33
#define ROW_5 34
#define COL_1 35
#define COL_2 36
#define COL_3 37
#define COL_4 40
#define COL_5 41
#define COL_6 38
#define COL_7 42
#define COL_8 44
#define COL_9 45
#define COL_10 46

#define BAT_PIN A7
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
Last Updated: 6/21/2018, 3:44:11 PM