Fix LCD SS pin configuration
There was a typo, so the attempted configuration proably didn't do what it should have done. I think it left the pin floating, and could cause the LCD problems issue-1230.
This commit is contained in:
parent
be0afd24bf
commit
430a8e1750
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue