1
0
Fork 0

Merge pull request #1245 from fredizzimo/fix_lcd_pin_configuration

Fix LCD SS pin configuration
This commit is contained in:
Jack Humbert 2017-04-19 07:50:03 -04:00 committed by GitHub
commit 95242fe0f1

View file

@ -75,7 +75,7 @@ static GFXINLINE void init_board(GDisplay *g) {
palSetPad(ST7565_GPIOPORT, ST7565_RST_PIN); palSetPad(ST7565_GPIOPORT, ST7565_RST_PIN);
palSetPadModeRaw(MOSI, ST7565_SPI_MODE); palSetPadModeRaw(MOSI, ST7565_SPI_MODE);
palSetPadModeRaw(SLCK, ST7565_SPI_MODE); palSetPadModeRaw(SLCK, ST7565_SPI_MODE);
palSetPadModeRaw(SS, PAL_MODE_OUTPUT_PUSHPULL); palSetPadModeNamed(SS, PAL_MODE_OUTPUT_PUSHPULL);
spiInit(); spiInit();
spiStart(&SPID1, &spi1config); spiStart(&SPID1, &spi1config);