Skip to content

Question about displaying 16-bit RGB images #17588

Answered by Sum-Guy
Sum-Guy asked this question in Q&A
Discussion options

You must be logged in to vote

I figured out how to create a bitmap, which I assume will work for any LCD bitmapped display connected to a tasmota device (specifically I'm working with a 240 x 240 ST7789 TFT display).

I took a sample jpg photo, reduced it to 240 pixels wide, the height ended up being 142 pixels.

I used irfanview to save the reduced image as RGB raw file. This creates 24 bit file with no header. R, G and B are 1 byte each, saved in that order.

I wrote some code to create an rgb file that can directly be displayed by tasmota

displaytext [x0y0P/file.rgb:]

As per instructions, first I wrote out the image width and height (each being 2 byte unsigned integer).

Then read in the pixel color values, each being …

Replies: 8 comments 17 replies

Comment options

You must be logged in to vote
3 replies
@gemu2015
Comment options

@Sum-Guy
Comment options

@barbudor
Comment options

Comment options

You must be logged in to vote
7 replies
@huyphamnhu
Comment options

@huyphamnhu
Comment options

@joba-1
Comment options

@SilentBob83
Comment options

@sfromis
Comment options

Answer selected by Sum-Guy
Comment options

You must be logged in to vote
2 replies
@sfromis
Comment options

@sfromis
Comment options

Comment options

You must be logged in to vote
1 reply
@sfromis
Comment options

Comment options

You must be logged in to vote
1 reply
@sfromis
Comment options

Comment options

You must be logged in to vote
1 reply
@sfromis
Comment options

Comment options

You must be logged in to vote
2 replies
@sfromis
Comment options

@sfromis
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants