Added 64 x 64 BMP display for own use


#1

My application is for a weather station display at my RC model airplane club’s flying field. I have two 32 x 64 LED matrix panels driven by a Teensy 3.2 and SmartMatrix3. Works wonderfully. I wanted to display our club logo on the entire 64 x 64 matrix but Smart Matrix only is set up for 32 x 32 .bmp display. So… .took at look at the SM code and changed it to allow 64 x 64 BMP display. Really simple to do: just edit gimpbitmap.h to: (just change all 32 to 64) and also change code calls to this to – gimp64x64bitmap

#ifndef _GIMPBITMAP_
#define _GIMPBITMAP_

// this structre can hold up to a 64x64 pixel RGB bitmap
typedef struct  {
  unsigned int   width;
  unsigned int   height;
  unsigned int   bytes_per_pixel; /* 2:RGB16, 3:RGB, 4:RGBA */
  unsigned char  pixel_data[64*64*3 + 1];
} gimp64x64bitmap;

#endif

David G.


#2

Thanks for sharing David! The bitmap struct is a bit inflexible, I hope to make it support 32x32, 64x64, and any other arbitrary size in a future release.