tft_Write_16S() macro fixed for ILI9488

This commit is contained in:
prenticedavid 2019-05-18 15:05:21 +01:00
parent 272d4c1ab7
commit a72c481dbf
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@
// Convert swapped byte 16 bit colour to 18 bit and write in 3 bytes // Convert swapped byte 16 bit colour to 18 bit and write in 3 bytes
#define tft_Write_16S(C) spi.transfer(C & 0xF8); \ #define tft_Write_16S(C) spi.transfer(C & 0xF8); \
spi.transfer((C & 0xE0)>>11 | (C & 0x07)<<5); \ spi.transfer((C & 0xE000)>>11 | (C & 0x07)<<5); \
spi.transfer((C & 0x1F00)>>5) spi.transfer((C & 0x1F00)>>5)
// Write 32 bits to TFT // Write 32 bits to TFT
#define tft_Write_32(C) spi.write32(C) #define tft_Write_32(C) spi.write32(C)