-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display a bitmap with the DrawTile function... #2531
Comments
I think you need a bitlevel converion of the 8x8 bitmatrix. Whereas a BMP has a mirrored bit structure: ok I even dont know if the the BMP starts with MSB or LSB... needs to be figured out... |
Well, I've read all your doc. I used the tool https://javl.github.io/[image2cpp](https://javl.github.io/image2cpp/)/ and tried a lot of combination, including "Swap bits in byte" with the remarks "Useful when working with the u8g2 library."... But somehow, I couldn't find a working solution :-( |
I think that online tool is not able to swap the bytes... |
I have created an example: Lines 27 to 67 in b88a767
You probably want to use line 64 instead of line 63.
|
Thx a lot, I'll try it out tomorrow. |
I have created a complete Arduino example, which also puts the image into PROGMEM area: https://github.com/olikraus/u8g2/blob/b88a767cdfff3fc5c5029ba8b5b2b1470ef60400/sys/arduino/u8x8/DrawXBM/DrawXBM.ino |
A huge thank you for your help, the new example... |
I've a bitmap of 72x64, which I can display without problem in "buffer mode".
Since this method needs too much ram, I wanted to draw this bitmap with the drawTile function.
I've tried to cut the bitmap in any possible way, I just get "garbage" on the display.
Here's the code:
and then in setup:
Could someone tell me what I'm doing wrong ?
Or is it simply impossible to do that ?!?
Or is the drawTile method broken ?
Thx
Fred
The text was updated successfully, but these errors were encountered: