Page 1 of 1

Best way to convert bmp to byte array

Posted: Fri Oct 16, 2015 5:31 am
by protomor
I noticed the main background of the obd2 mega logger is a bmp converted to a char array. I'd like to know how to best convert a regular old bmp into this format without coding something from scratch. I can't find documentation anywhere.

Re: Best way to convert bmp to byte array

Posted: Tue Jul 05, 2016 6:10 pm
by onche
Bumping this, I would like to know also
Thanks

Re: Best way to convert bmp to byte array

Posted: Tue Dec 06, 2016 2:53 am
by protomor
I forget how I did it but the conversion was very time consuming and annoying. I wound up coding it so the bmp was read through an SD card so that conversion wasn't necessary. The file space on the Arduino itself is far too precious to be spent on bitmaps.

Re: Best way to convert bmp to byte array

Posted: Thu Dec 22, 2016 3:38 am
by protomor
Sorry to edit this, I took a png, converted it to a raw file using this page (http://www.rinkydinkelectronics.com/t_i ... ter565.php) and loaded it from an external SD card.

Re: Best way to convert bmp to byte array

Posted: Fri Aug 18, 2017 8:27 pm
by protomor
I tried that code a long while ago. Never got it working well enough. I'm probably not smart enough to know where I went wrong lol. I hope the rinky dink website doesn't go down anytime soon.