60 lines
2.0 KiB
C
60 lines
2.0 KiB
C
<<<<<<< HEAD
|
|
#ifndef GPIO_H
|
|
#define GPIO_H
|
|
|
|
// Define keypad buttons
|
|
#define PIN_NUM_BUTTON_0 36
|
|
#define PIN_NUM_BUTTON_1 39
|
|
#define PIN_NUM_LED_1 32
|
|
#define PIN_NUM_LED_2 33
|
|
#define PIN_NUM_nON 26
|
|
|
|
|
|
// Define GPIO pins
|
|
#ifdef DEVKIT
|
|
#define PIN_NUM_MOSI 23 // SDA pin for LCD
|
|
#define PIN_NUM_CLK 18 // SCL pin for LCD
|
|
#define PIN_NUM_CS 2 // CS pin
|
|
#define PIN_NUM_DC 12 // Data/Command pin (RS)
|
|
#define PIN_NUM_RST 13 // Reset pin
|
|
#define PIN_NUM_BK_LIGHT -1 // Backlight control pin, -1 if not used
|
|
#else
|
|
#define PIN_NUM_MOSI 23 // SDA pin for LCD
|
|
#define PIN_NUM_CLK 18 // SCL pin for LCD
|
|
#define PIN_NUM_CS 12 // CS pin
|
|
#define PIN_NUM_DC 15 // Data/Command pin (RS)
|
|
#define PIN_NUM_RST 13 // Reset pin
|
|
#define PIN_NUM_BK_LIGHT 5 // Backlight control pin, -1 if not used
|
|
#endif
|
|
|
|
=======
|
|
#ifndef GPIO_H
|
|
#define GPIO_H
|
|
|
|
// Define keypad buttons
|
|
#define PIN_NUM_BUTTON_0 36
|
|
#define PIN_NUM_BUTTON_1 39
|
|
#define PIN_NUM_LED_1 32
|
|
#define PIN_NUM_LED_2 33
|
|
#define PIN_NUM_nON 26
|
|
|
|
|
|
// Define GPIO pins
|
|
#ifdef DEVKIT
|
|
#define PIN_NUM_MOSI 23 // SDA pin for LCD
|
|
#define PIN_NUM_CLK 18 // SCL pin for LCD
|
|
#define PIN_NUM_CS 2 // CS pin
|
|
#define PIN_NUM_DC 12 // Data/Command pin (RS)
|
|
#define PIN_NUM_RST 13 // Reset pin
|
|
#define PIN_NUM_BK_LIGHT -1 // Backlight control pin, -1 if not used
|
|
#else
|
|
#define PIN_NUM_MOSI 23 // SDA pin for LCD
|
|
#define PIN_NUM_CLK 18 // SCL pin for LCD
|
|
#define PIN_NUM_CS 12 // CS pin
|
|
#define PIN_NUM_DC 15 // Data/Command pin (RS)
|
|
#define PIN_NUM_RST 13 // Reset pin
|
|
#define PIN_NUM_BK_LIGHT 5 // Backlight control pin, -1 if not used
|
|
#endif
|
|
|
|
>>>>>>> 4feb4c0a98bddb1f2a172ea4b195ce31ba18d442
|
|
#endif |