Skip to content

Commit b9bc98e

Browse files
committed
Merge pull request esp8266#375 from boybundit/tftv2-spi-clock
Fix SPI Clock Div in TFTv2
2 parents 4775fba + 8ac9298 commit b9bc98e

File tree

1 file changed

+2
-2
lines changed
  • hardware/esp8266com/esp8266/libraries/TFT_Touch_Shield_V2

1 file changed

+2
-2
lines changed

hardware/esp8266com/esp8266/libraries/TFT_Touch_Shield_V2/TFTv2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void TFT::TFTinit (void)
3030
pinMode(4, OUTPUT);
3131
pinMode(15, OUTPUT);
3232
SPI.begin();
33-
SPI.setClockDivider(2);
33+
SPI.setClockDivider(SPI_CLOCK_DIV2);
3434

3535
TFT_CS_HIGH;
3636
TFT_DC_HIGH;
@@ -570,4 +570,4 @@ INT8U TFT::drawFloat(float floatNumber,INT16U poX, INT16U poY,INT16U size,INT16U
570570
TFT Tft=TFT();
571571
/*********************************************************************************************************
572572
END FILE
573-
*********************************************************************************************************/
573+
*********************************************************************************************************/

0 commit comments

Comments
 (0)