Skip to content

Commit

Permalink
Fix #2942
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodmer committed Oct 30, 2023
1 parent 5162af0 commit 317ce97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Processors/TFT_eSPI_STM32.h
Expand Up @@ -1027,15 +1027,18 @@

#else

/* Remove patch to fix #2933
#if defined(ST7789_DRIVER) || defined(ST7789_2_DRIVER)
// Temporary workaround for issue #510 part 2
#define tft_Write_8(C) spi.transfer(C)
#else
*/
#define tft_Write_8(C) \
{ spiBuffer[0] = C; \
HAL_SPI_Transmit(&spiHal, spiBuffer, 1, 10); delayMicroseconds(1);}
/* Remove patch to fix #2933
#endif

*/
#define tft_Write_16(C) \
{ spiBuffer[0] = (C)>>8; spiBuffer[1] = C; \
HAL_SPI_Transmit(&spiHal, spiBuffer, 2, 10); }
Expand Down

0 comments on commit 317ce97

Please sign in to comment.