BMP monochrome

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
maxtisc
Posts: 110
Joined: Mon Dec 23, 2013 9:34 pm
Has thanked: 2 times
Been thanked: 9 times
Contact:

BMP monochrome

Post by maxtisc »

Hello
a question for the team
in block GLCD you can enter the print function BMP image read from a sd card for monochrome displays (type KS0108)?
in the forum and in the examples it is always a color display, or you have a sample file that does this?
thank you

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: BMP monochrome

Post by Benj »

Hello,

Yes outputting a monochrome bitmap to a monochrome graphical LCD should be fine.

You can use paint to save a bitmap file with a monochrome colour depth. It's then just a case of parsing the file and getting the pixel data.

The colour examples should be a good starting point. The wikipedia page on bitmaps should also help you with the parsing the monochrome file format.

maxtisc
Posts: 110
Joined: Mon Dec 23, 2013 9:34 pm
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: BMP monochrome

Post by maxtisc »

hi benj
to do the tests I used your post http://www.matrixtsl.com/mmforums/viewt ... fat#p36423
which is very informative but I came to a point that I can not get past, now I can read the mmc and see the display characteristics of the stored images (width 128, height 64, BPP 1, comp 0, offset 62) but I do not see the picture, I see only that the screen fills from bottom to the top.
I tried to change the flow PBB 24 to 1 and eliminated the part about reading color, but had no effect
You can help me?
tanks

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: BMP monochrome

Post by Benj »

Hello.

Please can you post your program so far and your bitmap file your trying to read in and I will have a look here for you.

maxtisc
Posts: 110
Joined: Mon Dec 23, 2013 9:34 pm
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: BMP monochrome

Post by maxtisc »

hello benj
sorry for the delay but I was out of town for work
I am attaching the file plus a video so that you see what happens
Thank you for your interest
Attachments
test mono v6.zip
(2.44 MiB) Downloaded 317 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: BMP monochrome

Post by Benj »

Hello,

I have had a bit of a play with your code and this now seems to be working to display the bitmaps correctly.
GLCD & FAT BMP_monov6.fcfx
(26.13 KiB) Downloaded 339 times
MonoSim.jpg
MonoSim.jpg (56.13 KiB) Viewed 5534 times

maxtisc
Posts: 110
Joined: Mon Dec 23, 2013 9:34 pm
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: BMP monochrome

Post by maxtisc »

hello benj
thank you very much for your help, I can just feel the files you've changed and let you know if it works
thank you

maxtisc
Posts: 110
Joined: Mon Dec 23, 2013 9:34 pm
Has thanked: 2 times
Been thanked: 9 times
Contact:

Re: BMP monochrome

Post by maxtisc »

thanks benj,
it all works very well

Post Reply