blk_box_lib/include/pins.h
2026-04-01 22:11:48 -05:00

47 lines
1.2 KiB
C

#ifndef PINS_H
#define PINS_H
#include "driver/gpio.h"
#define PIN_SDA (GPIO_NUM_7)
#define PIN_SCL (GPIO_NUM_15)
#define PIN_LCD_MISO (GPIO_NUM_16)
#define PIN_LCD_MOSI (GPIO_NUM_17)
#define PIN_LCD_CLK (GPIO_NUM_18)
#define PIN_LCD_RS (GPIO_NUM_8)
#define PIN_LCD_RST (GPIO_NUM_9)
#define PIN_USB_DM (GPIO_NUM_19)
#define PIN_USB_DP (GPIO_NUM_20)
#define PIN_I2S_DAT (GPIO_NUM_3)
#define PIN_I2S_BCLK (GPIO_NUM_11)
#define PIN_I2S_LRCLK (GPIO_NUM_12)
#define PIN_SSEG_DAT (GPIO_NUM_46)
#define PIN_SSEG_CLK (GPIO_NUM_48)
#define PIN_MPU_INT (GPIO_NUM_10)
#define PIN_EXPANDER_INT (GPIO_NUM_13)
#define PIN_IR_RCV (GPIO_NUM_14)
// #define PIN_NEOPIXEL (GPIO_NUM_21) // Rev 2.1
#define PIN_NEOPIXEL (GPIO_NUM_0) // Rev 2.0
#define PIN_SD_DAT0 (GPIO_NUM_38)
#define PIN_SD_DAT1 (GPIO_NUM_47)
#define PIN_SD_DAT2 (GPIO_NUM_42)
#define PIN_SD_DAT3 (GPIO_NUM_41)
#define PIN_SD_CMD (GPIO_NUM_40)
#define PIN_SD_CLK (GPIO_NUM_39)
#define PIN_PERH0 (GPIO_NUM_6)
#define PIN_PERH1 (GPIO_NUM_5)
#define PIN_PERH2 (GPIO_NUM_4)
#define PIN_PERH3 (GPIO_NUM_2)
#define PIN_PERH4 (GPIO_NUM_1)
#endif // PINS_H