-
Notifications
You must be signed in to change notification settings - Fork 20
/
devicePinSetup.h
52 lines (41 loc) · 2.38 KB
/
devicePinSetup.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
44
45
46
47
48
49
50
51
52
/**************************************************************************
Builtin LED pin ( Blinks when no WiFi connection can be made )
**************************************************************************/
#ifndef LED_BUILTIN
#define LED_BUILTIN 2
#endif
/**************************************************************************
LED pin numbers
**************************************************************************/
#define LED0_PIN 22
#define LED1_PIN 21
#define LED2_PIN 17
#define LED3_PIN 16
#define LED4_PIN 26
/**************************************************************************
SPI pin definitions
**************************************************************************/
#define SPI_TFT_DC_PIN 27 /* Goes to TFT DC */
#define SPI_SCK_PIN 25 /* Goes to TFT SCK/CLK */
#define SPI_MOSI_PIN 32 /* Goes to TFT MOSI */
#define SPI_TFT_RST_PIN 12 /* Goes to TFT RESET */
#define SPI_TFT_CS_PIN 4 /* Goes to TFT CS */
#define SPI_SD_CS_PIN 0 /* Goes to SD CS */
#define SPI_MISO_PIN 39 /* Goes to TFT MISO */
#define TOUCH_CS_PIN 33 /* Goes to TFT T_CS */
#define TOUCH_IRQ_PIN 35 /* Goes to TFT T_IRQ */
/* 3.3v Goes to TFT Vcc */
/* Gnd Goes to TFT Gnd */
/**************************************************************************
TFT display backlight control
**************************************************************************/
#define TFT_BACKLIGHT_PIN 2
/**************************************************************************
i2c pin definitions for oled
**************************************************************************/
#define I2C_SCL_PIN 19
#define I2C_SDA_PIN 23
/**************************************************************************
OneWire Dallas sensors are connected to this pin
**************************************************************************/
#define ONEWIRE_PIN 5