-
Notifications
You must be signed in to change notification settings - Fork 7.6k
/
Copy pathpins_arduino.h
43 lines (33 loc) · 1.38 KB
/
pins_arduino.h
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
#ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <stdint.h>
static const uint8_t LED_BUILTIN = 5;
#define BUILTIN_LED LED_BUILTIN // backward compatibility
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
static const uint8_t TX = 34;
static const uint8_t RX = 35;
static const uint8_t SDA = 21;
static const uint8_t SCL = 22;
static const uint8_t SS = 29;
static const uint8_t MOSI = 37;
static const uint8_t MISO = 31;
static const uint8_t SCK = 30;
static const uint8_t A0 = 36; // BUILTIN_Potentiometer
static const uint8_t A1 = 39; // BUILTIN_CDS
static const uint8_t A2 = 32; // BUILTIN_temperature
static const uint8_t A3 = 33; // Analog Input
static const uint8_t A4 = 34; // Analog Input
static const uint8_t A5 = 35; // Analog Input
static const uint8_t A6 = 25; // Analog Input
static const uint8_t A7 = 26; // Analog Input
static const uint8_t D2 = 27; // BUILTIN_LED_Red
static const uint8_t D3 = 14; // BUILTIN_LED_Blue
static const uint8_t D4 = 12; // BUILTIN_LED_Green
static const uint8_t D5 = 13; // BUILTIN_LED_Yellow
static const uint8_t D6 = 15; // BUILTIN_BUTTON_Red
static const uint8_t D7 = 16; // BUILTIN_BUTTON_Blue
static const uint8_t D8 = 17; // BUILTIN_BUTTON_Green
static const uint8_t D9 = 4; // BUILTIN_BUTTON_Yellow
static const uint8_t DAC1 = 25;
static const uint8_t DAC2 = 26;
#endif /* Pins_Arduino_h */