Hello Alan,
Just a short remark in case you didn't find code examples suitable for your needs.
I have written simple bitmap handling that takes as input a modified .BMP file formatted as a structure.
I also have written the VC++ code that converts a usual BMP file to a C file that can be directly compiled and linked with your code.
If you are interested, just send me an email (
patrick@defibtech.com) and I'll send you the sources rightaway.
Three remarks:
1 - I use a LPD 3"5 display in 16 BPP mode and I only handle this but this should not be a difficult mod;
2 - There is room for improvement in the BMP drawing speed which I handle in an unusual direction due to the screen being used in landscape instead of its native portrait.
3 - I use the IAR EWARM toolchain so there might be needs for slight adjustments of the syntax. (This toolchain does not allow straight insertion of a binary file in the generted code, hence my VC++ mod to generate a C file that can be compiled.)
Regards
Patrick