Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TFT_eSPI
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
TFT_eSPI
Commits
197c408d
Unverified
Commit
197c408d
authored
May 19, 2019
by
Bodmer
Committed by
GitHub
May 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrrect byte swap for 18 bit colours
parent
9f179201
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
TFT_eSPI.h
TFT_eSPI.h
+1
-1
No files found.
TFT_eSPI.h
View file @
197c408d
...
@@ -334,7 +334,7 @@
...
@@ -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 & 0xE0
00
)>>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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment