How do I get bitmap icons from an SD card to Rayman's display?
Microcontrolled
Posts: 2,461
I am wanting to read bitmap icons (doesn't matter how much color) off of an SD card and onto Rayman's display. They will be placed on the screen like the shortcuts on a desktop. I am wondering: What code will I need for this and what will I need to do to the .bmp file to get it on the display? I have used Rayman's 2bit bitmap Windows app and the DisplayBitmap2bit PUB from the PSB_Paint! object but only get a disorted image. What do I need to do to get multiple icons on the screen? This is using a PSB setup and the prop.
Thanks,
Micro
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my new website!!
Use the Propeller icon!!
Follow me on Twitter! Search "Microcontrolled"
Thanks,
Micro
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my new website!!
Use the Propeller icon!!
Follow me on Twitter! Search "Microcontrolled"
Comments
The one trick to custom character apps is that we need to 16-long align the bitmap data before showing it.
But, we need to know how much data we need to align...· This is handled by a parameter in the CON section called "nuchars".
So, if you add a 16x16 pixel tile, you need to increase the value of the constant "nuchars" by 1.
I think those icons are 2x2=4 tiles, so you need to add 4 to nuchars for every icon you add...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
Now I have another question: How do I get it the colors I want?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my new website!!
Use the Propeller icon!!
Follow me on Twitter! Search "Microcontrolled"
I have some color help here:
http://www.rayslogic.com/propeller/Programming/Colors.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my new website!!
Use the Propeller icon!!
Follow me on Twitter! Search "Microcontrolled"