Open remy opened 2 years ago
At first, you forgot to create a frame buffer to canvas.img. It should be WIDTH x HEIGHT, 8 bits per pixel. But don't create it - because you don't have enough RAM for such a buffer. An 1152 x 864 / 8-bit frame buffer would require 1 MB of RAM, but the processor only has 256 KB of RAM. With video mode at that resolution you have to use other image formats like 2-color image, tiles, etc.
I apologise in advance, my c is very rusty and this seems like a fairly straight forward task but I've been at it for hours and somehow I'm getting nothing coming out of the vga port anymore (though I should make clear compiling and running the demos included all worked).
I have an image that's 192x144 and I want to scale it to the VESA resolution, but I can't seem to get there. I've converted the source bmp using the tool you included and have:
I call this method to prepare the transform:
Then my
main
is - thesetup videomode
bit being where I think it's going wrong but I copied from the other examples in the hope I could get it to work.This isn't putting anything out on the the video port once it's running on the pico, and I'm hoping that … someone(?) might be able to set me straight, again, on what I'd imagine is fairly straight forward.
Thanks in advance.