Allow RP2040 to read from SPI TFT

This commit is contained in:
Bodmer committed 2022-01-27 22:15:04 +00:00
1 parent d0ef07d7f6
commit 47895f1e7b
5 files changed
+17 -11

No files matched your search

+4
View File
@@ -69,12 +69,16 @@ uint8_t TFT_eSPI::tft_Read_8(void)
{
uint8_t ret = 0;
/*
for (uint8_t i = 0; i < 8; i++) { // read results
ret <<= 1;
SCLK_L;
if (digitalRead(TFT_MOSI)) ret |= 1;
SCLK_H;
}
*/
ret = spi.transfer(0x00);
return ret;
}