Neopixel 32x8 Matrix Displey - bitmap drawing

Hello guys, I have some trouble with Neopixel Matrix Displey. I want to draw some simple images with bitmap. I tried to draw smile, but I dont know, how can I rotate image vertically as you can see on the picture .

Can you give me some hit please ? :slight_smile:

Here is code:

#include "FastLED.h"

#define NUM_LEDS 256


#define DATA_PIN 6

CRGB leds[NUM_LEDS];

long smile[] =
{
 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000,
 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000,
 0x800000, 0xffffff, 0xffffff, 0x800000, 0x800000, 0xffffff, 0xffffff, 0x800000,
 0x800000, 0xffffff, 0xffffff, 0x800000, 0x800000, 0xffffff, 0xffffff, 0x800000,
 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000,
 0xffffff, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0x800000, 0xffffff,
 0x800000, 0xffffff, 0x800000, 0x800000, 0x800000, 0x800000, 0xffffff, 0x800000,
 0x800000, 0x800000, 0xffffff, 0xffffff, 0xffffff, 0xffffff, 0x800000, 0x800000
};


void setup() {
 FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
}

void loop() {

 for (int i = 0; i < 64; i++) {
   leds[i] = smile[i];
 }
 FastLED.setBrightness(40);
 FastLED.show();
 delay(800);

}

Hopefully now you can see why we ask you to use code tags when posting code

How do you have your neopixel matrix arranged? 32x8 implies an arrangement of 32 neopixels per row, with 8 rows, but your image appears to be an 8x8 arrangement.

When using a Neopixel matrix it is best to have the image in pixel order in groups of three where each one of the group of three describes the size of the colour components red, green and blue.

It is then quite easy to plot the image in any of the four quadrants by simply manipulating the X-Y coordinate to pixel number translation function.