-
Hi I am trying to run NeoPixelBitmap.ino sketch on my hardware with configurations below: NeoPixel is a sheet of 8*32 WS2812B Using a very small bitmap of 8*8 pixels to make thing simple.
Although the bitmap is displayed, it is somewhat distorted. It seems to be an endianness issue. Am I doing it right? How to correct the distortion? I also wish to be able to control the brightness. How to do it with NepBitmapFile object? John |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
(NOT AN ISSUE attribute means it's a discussion, so I moved it over. If we find a real bug here, we can create an issue to track it with details) How did you define |
Beta Was this translation helpful? Give feedback.
-
Your test image is too symmetrical, here is a modified version of it that will help diagnose issues better. I included both the PNG and the BMP in the zip file. |
Beta Was this translation helpful? Give feedback.
-
Sorry to have closed it unintentionally. A follow-up question at #738 (reply in thread). |
Beta Was this translation helpful? Give feedback.
(NOT AN ISSUE attribute means it's a discussion, so I moved it over. If we find a real bug here, we can create an issue to track it with details)
How did you define
image
?The actual BMP file is needed to see details of what it is. You can rename the file to .txt and then attach. Or ZIP it up and attach that. It looks like the image is rotated 180 degrees which could be from file details. Or it could be how the physical matrix is mapped out. What is pixel zero? What is pixel 7? What is Pixel 8? See Wiki.
You are using BLT method that only does a single row. see Wiki
You want to use the one that does 2D Blt, which requires more parameters including the layout MAP for your flexible matrix. …