mirror of
https://github.com/JADE-Jerry/jcalendar.git
synced 2026-03-15 05:23:17 +08:00
28 lines
579 B
C
28 lines
579 B
C
|
||
#ifndef __WIRING_H__
|
||
#define __WIRING_H__
|
||
|
||
#define LOLIN32_LITE
|
||
|
||
|
||
#ifdef LOLIN32_LITE
|
||
// Output PIN
|
||
#define SPI_MOSI GPIO_NUM_23
|
||
#define SPI_MISO GPIO_NUM_19 // Reserved
|
||
#define SPI_SCK GPIO_NUM_18
|
||
#define SPI_CS GPIO_NUM_5
|
||
#define SPI_DC GPIO_NUM_17
|
||
#define SPI_RST GPIO_NUM_16
|
||
#define SPI_BUSY GPIO_NUM_4
|
||
// I2C
|
||
#define I2C_SDA GPIO_NUM_21
|
||
#define I2C_SCL GPIO_NUM_22
|
||
// Other PIN
|
||
#define KEY_M GPIO_NUM_14 // 注意:由于此按键负责唤醒,因此需要选择支持RTC唤醒的PIN脚。
|
||
#define PIN_LED_R GPIO_NUM_22
|
||
|
||
#define PIN_ADC GPIO_NUM_32 // ADC
|
||
#endif
|
||
|
||
#endif
|