Files
nrf51_2in13_epd/USER/board_epd2in6.h
2025-04-28 20:55:30 +08:00

67 lines
1.2 KiB
C

/**
*/
#ifndef BOARD_EPD2IN6_H
#define BOARD_EPD2IN6_H
#ifdef __cplusplus
extern "C" {
#endif
#include "nrf_gpio.h"
#define LEDS_NUMBER 2
#define LED_START 17
#define LED_RED 17
#define LED_1 17
#define LED_2 18
#define LED_GREEN 18 // actually yellow
#define LED_STOP 18
#define LEDS_ACTIVE_STATE 0
#define LEDS_INV_MASK LEDS_MASK
#define LEDS_LIST { LED_1, LED_2 }
#define BSP_LED_0 LED_1
#define BSP_LED_1 LED_2
#define BUTTONS_NUMBER 0
#define BUTTON_START 3
#define BUTTON_1 3
#define BUTTON_REED 3
#define BUTTON_STOP 3
#define BUTTON_PULL NRF_GPIO_PIN_PULLDOWN
#define BUTTONS_ACTIVE_STATE 1
#define BUTTONS_LIST { BUTTON_1 }
#define BSP_BUTTON_0 BUTTON_1
//#define BAT_CTL 6
//#define BAT_IN 4
//#define EPD_CTL 2
#define EPD_BS 5
#define EPD_BUSY 4
#define EPD_RST 3
#define EPD_DC 2
#define EPD_CS 1
#define EPD_SCLK 0
#define EPD_SDI 30
//#define RX_PIN_NUMBER 20
//#define TX_PIN_NUMBER 19
//#define HWFC false
#ifdef __cplusplus
}
#endif
#endif // BOARD_EPD2IN6_H