Add missing LCD driver definitions for STM32F4DISC
* Add missing LCD definitions for STM32F4DISC target, current code breaks build.
This commit is contained in:
parent
00a4da93e8
commit
bd61a6cee8
10
stm/lcd.c
10
stm/lcd.c
@ -41,6 +41,16 @@
|
||||
#define PYB_LCD_BL_PORT (GPIOB)
|
||||
#define PYB_LCD_BL_PIN (GPIO_Pin_1) // Y12 = PB1
|
||||
*/
|
||||
#elif defined(STM32F4DISC)
|
||||
/* Configure if needed */
|
||||
#define PYB_LCD_PORT (GPIOA)
|
||||
#define PYB_LCD_CS1_PIN (GPIO_Pin_2) // X3
|
||||
#define PYB_LCD_RST_PIN (GPIO_Pin_3) // X4
|
||||
#define PYB_LCD_A0_PIN (GPIO_Pin_4) // X5
|
||||
#define PYB_LCD_SCL_PIN (GPIO_Pin_5) // X6
|
||||
#define PYB_LCD_SI_PIN (GPIO_Pin_7) // X8
|
||||
#define PYB_LCD_BL_PORT (GPIOC)
|
||||
#define PYB_LCD_BL_PIN (GPIO_Pin_5) // X12
|
||||
#endif
|
||||
|
||||
#define LCD_INSTR (0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user