From 284a503ded86c0043320d1ce0689cb7e339ff4a2 Mon Sep 17 00:00:00 2001 From: Charlez Kwan Date: Tue, 21 Jan 2020 15:25:21 +0100 Subject: [PATCH] main.h : button pin definition and max selector pos --- Inc/main.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Inc/main.h b/Inc/main.h index fd6b11d..4b6b464 100644 --- a/Inc/main.h +++ b/Inc/main.h @@ -86,10 +86,17 @@ void Error_Handler(void); #define BUSY_GPIO_Port GPIOA #define SPI_CS_Pin GPIO_PIN_4 #define SPI_CS_GPIO_Port GPIOA +#define ButtonLeft_Pin GPIO_PIN_12 +#define ButtonLeft_GPIO_Port GPIOB +#define ButtonPress_Pin GPIO_PIN_13 +#define ButtonPress_GPIO_Port GPIOB +#define ButtonRight_Pin GPIO_PIN_14 +#define ButtonRight_GPIO_Port GPIOB #define LED_Pin GPIO_PIN_8 #define LED_GPIO_Port GPIOB /* USER CODE BEGIN Private defines */ - +#define MAX_SSET_POS 28 +#define MAX_SELECTOR_POS 31 /* USER CODE END Private defines */ #ifdef __cplusplus