Skip to content
Snippets Groups Projects
Commit bd61a6ce authored by mux's avatar mux
Browse files

Add missing LCD driver definitions for STM32F4DISC

* Add missing LCD definitions for STM32F4DISC target, current code
  breaks build.
parent 00a4da93
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,16 @@ ...@@ -41,6 +41,16 @@
#define PYB_LCD_BL_PORT (GPIOB) #define PYB_LCD_BL_PORT (GPIOB)
#define PYB_LCD_BL_PIN (GPIO_Pin_1) // Y12 = PB1 #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 #endif
#define LCD_INSTR (0) #define LCD_INSTR (0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment