Hackable Badge: Custom display graphics
VonSzarvas
Posts: 3,450
in Propeller 1
This discussion was created from comments split from: My Hackable Badge.
Comments
Dave
For a quick test during development I used: LCD Assistant to create the bytes.
It was a while ago, but I seem to recall the output was slightly different to the spin DAT format, and I used a spreadsheet to paste in the data and convert to a spin friendly format. This is likely what the SPIN sample code is using for image data.
The propeller could probably handle a simplified bmp format directly too. Not sure if anyone has written a decoder-- maybe that is what Andy's suggested C code is doing.
Couple options anyway. Let us know how you get on. I think a step-by-step guide on this process would be really handy.
Michael.
Find a picture you want to use, open it with paint (assuming you're using windows- sorry) go to resize your picture, use pixels, resize, your screen is 128 by 64, so 64 is effectively your limit size, you can force it but your image will be distorted. Save as a BMP.
Open LCD assistant to open (leave all the defaults) the BMP ensure the size is 128 wide by 64 height. What I noticed was that it was changing the height and width to whatever I changed to using paint, if you try and upload that it will distort your image. Go to file, save output, and then open that in a text editor; I'm using notepad++.
Take the hex out of that file, just the hex, and copy and paste it as needed.
http://en.radzio.dxp.pl/bitmap_converter/
Welcome to the forum!
Thanks for the tip!