File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 59
59
#define SPI_1_PA5_PA6_PA7 1
60
60
#define SPI_1_MODE_OUTPUT STM_GPIO_CR_MODE_OUTPUT_10MHZ
61
61
62
+ /* Chip Select. LCD pin 1. nucleo PA4 = A2 */
62
63
#define AO_ST7565_CS_PORT (&stm_gpioa) /* pin 1 */
63
64
#define AO_ST7565_CS_PIN 4
65
+
66
+ /* Reset. LCD pin 2. nucleo PA0 = A0 */
64
67
#define AO_ST7565_RESET_PORT (&stm_gpioa) /* pin 2 */
65
68
#define AO_ST7565_RESET_PIN 0
69
+
70
+ /* A0. LCD pin 3. nucleo PA1 = A1 */
66
71
#define AO_ST7565_A0_PORT (&stm_gpioa) /* pin 3 */
67
72
#define AO_ST7565_A0_PIN 1
68
- #define AO_ST7565_SPI_BUS AO_SPI_1_PA5_PA6_PA7
73
+
74
+ /* SCLK. LCD DB6 pin 12. nucleo PA5 = D13 */
75
+ /* MOSI. LCD DB7 pin 13. nucleo PA7 = D11 */
76
+ #define AO_ST7565_SPI_BUS (AO_SPI_1_PA5_PA6_PA7 | AO_SPI_MODE_3)
69
77
#define AO_ST7565_WIDTH 128
70
78
#define AO_ST7565_HEIGHT 64
71
79
#define AO_ST7565_BIAS ST7565_LCD_BIAS_1_9
You can’t perform that action at this time.
0 commit comments