Closed d-atlas closed 3 years ago
You're passing a value of 0 for the pitch. Pitch is the bytes per line of your image. You need to pass 6 (45 + 7)/8. Also you're passing the priority color as 0. I think you want to pass 1. Have you defined a back buffer to draw it into?
I didn't know that pitch was the number of bytes per line, thank you, it works now!
Hello,
How does one use the oledDrawSprite function correctly? I have been trying different byte codes generated from bmp and xbm monochrome image files and your image_to_c program (also with 1-bpp bmp files) but I can't seem to get a picture onto my 128x64 px screen. I assume cx and cy denote the image size in pixels and x and y the location that they will be displayed to. I have defined and set a backbuffer of size 1024 on my ESP8266. Everything else works very smooth, thank you for making this library.
This is an example image I tried to display, the display was initialized at 1MHz.