MaximumOctopus / LEDMatrixStudio

Design LED matrix graphics and fonts with ease. Ideal for all microcontrollers and embedded platforms.
GNU General Public License v3.0
18 stars 1 forks source link

16Bits Number Grouping #1

Open Domsed opened 1 year ago

Domsed commented 1 year ago

Please, can you add 16Bits Number grouping option to Export function? The ESP32-HUB75-MatrixPanel-DMA library support only 16bits and i cant get right code for it :( . Thanks D.S

Screenshot_5

MaximumOctopus commented 1 year ago

I can add that.

RGB colours are 24 bits, so how would a 16 bit output work?

Two groups of 16 bits per colour (based on the colour format selection), eg: 0R GB Where 0 is a zero byte.

MangMuang commented 11 months ago

I can add that.

RGB colours are 24 bits, so how would a 16 bit output work?

Two groups of 16 bits per colour (based on the colour format selection), eg: 0R GB Where 0 is a zero byte.

I think it's called RGB565 which is 16Bit RGB, ImageConverter565 by Henning Karlsen doing that. I think it's good to have RGB565 since it save a lot of programming space. Not sure how to encode it but I do this to decode into RGB888.

unsigned char redA = ((((ColorIn>> 11) & 0x1F) 527) + 23) >> 6; unsigned char greenA = ((((ColorIn>> 5) & 0x3F) 259) + 33) >> 6; unsigned char blueA = (((ColorIn& 0x1F) * 527) + 23) >> 6;

MaximumOctopus commented 11 months ago

Yeah I can add that, good idea! I'll get to work on it this week.