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
BMP monochrome
Moderator: Benj
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 110
- Joined: Mon Dec 23, 2013 9:34 pm
- Has thanked: 2 times
- Been thanked: 9 times
- Contact:
Re: BMP monochrome
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
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
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 110
- Joined: Mon Dec 23, 2013 9:34 pm
- Has thanked: 2 times
- Been thanked: 9 times
- Contact:
Re: BMP monochrome
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
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
- 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
Hello,
I have had a bit of a play with your code and this now seems to be working to display the bitmaps correctly.
I have had a bit of a play with your code and this now seems to be working to display the bitmaps correctly.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 110
- Joined: Mon Dec 23, 2013 9:34 pm
- Has thanked: 2 times
- Been thanked: 9 times
- Contact:
Re: BMP monochrome
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
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