easy way to GLCD? Solved ty to helpers.

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

Moderator: Benj

lordhex
Posts: 54
Joined: Mon Dec 30, 2013 2:09 am
Has thanked: 15 times
Been thanked: 12 times
Contact:

easy way to GLCD? Solved ty to helpers.

Postby lordhex » Tue Dec 31, 2013 3:20 am

hi all i am useing flowcode 6v.04
I wonder the GLCD basic print and line options are soo easy but how to draw a picture?
I understand that we can read BMP files from SD cards ( soooooo soooo long way for me) and the sample is in 5v. i can't open in 6.v
is it possible to use programs like fastlcd?
Can we use codes like
sample:
&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,
&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,
&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,
.....
So many programs can convert bmp to these codes but i really don't know to use this codes.
And i want to report a bug if i update the program some of the components are eraseing in my program like lcd KS0108
Please someone help abouth glcd
Last edited by lordhex on Mon Jan 06, 2014 10:37 pm, edited 1 time in total.

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

Re: easy way to GLCD?

Postby Benj » Thu Jan 02, 2014 11:54 am

Hello,

I have ported the v5 example over to v6 and this will soon be available with the v6 examples. Here is a copy.

gLCD Fat Bitmap.zip
(103.17 KiB) Downloaded 224 times


The codes you mentioned "&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00,&h00," are simply byte values in hexadecimal format. The example basically does the same thing and parses the file to get the byte values for each pixel colour.

Note that the v6 FAT component simulation will not work with the scan for files function so the photo gallery example from the v5 article will not currently work in simulation so I have not yet provided this as a v6 example.
These users thanked the author Benj for the post:
medelec35 (Mon Jan 06, 2014 10:58 pm)
Rating: 5%
 

User avatar
STibor
Posts: 262
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 115 times
Been thanked: 112 times
Contact:

Re: easy way to GLCD?

Postby STibor » Thu Jan 02, 2014 8:25 pm

Hi,

A simple example program bmp 24x16 pixel processing.
Bmp file to extract the HxD HexEditor edited.
Attachments
bw bitmap.jpg
bw bitmap.jpg (211.56 KiB) Viewed 3254 times
ks0108bmp_1_3_8.fcfx
(11.29 KiB) Downloaded 138 times
These users thanked the author STibor for the post (total 2):
Benj (Fri Jan 03, 2014 10:06 am) • medelec35 (Mon Jan 06, 2014 10:58 pm)
Rating: 10%
 

lordhex
Posts: 54
Joined: Mon Dec 30, 2013 2:09 am
Has thanked: 15 times
Been thanked: 12 times
Contact:

Re: easy way to GLCD?

Postby lordhex » Fri Jan 03, 2014 2:47 am

Mr. benj i tryed to open as you say did not open :(
i am abouth to give up try to use glcd in flowcode :(
if it is possible write to do list i will try to convert in to v6
for exp.
open fat
read fat
convert to word or byte
x=?
y?
i really dont know to do :( and i do not want to tire you.
For exp. in proton i only add the .inc of the coverted bmp (it was soooo easy) i was hopping to do in flowcode faster and easy.
My dreams gone :)
Image

Image
and Mr. stibor
Doesn't work for me :(
i think i have to wait for flowcode programmers will do this hard thing easy.
for exp. in component there will be a command like
fat.initialise
done!
open file "huraaay.bmp"
glcd open "huraaay.bmp" hehehehhehe NO CODE , NOT HARD THATS WHY WE ARE PAYING FOR THIS PROGRAM REMEMBER?
Now i can read .txt files from fat and write it to the lcd 2x16 but still wrestleing with glcd :(

lordhex
Posts: 54
Joined: Mon Dec 30, 2013 2:09 am
Has thanked: 15 times
Been thanked: 12 times
Contact:

Re: easy way to GLCD?

Postby lordhex » Fri Jan 03, 2014 3:03 am

hello benj now i can open youre exemple.
it is fantastic :)
it is soooo long to understand :S
but i promise i will try to understand.
and onemore thing to ask
will the same codes of youre program will work for the K0108?

User avatar
STibor
Posts: 262
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 115 times
Been thanked: 112 times
Contact:

Re: easy way to GLCD?

Postby STibor » Fri Jan 03, 2014 6:27 am

Hi,

Byte array C code has been created, you can not simulate the Flowcode.
The "pixeldata" variable initial value is not set, it is an error message.
This is not a problem.
I attach an example, in the byte array was created in Flowcode.
Attachments
ks0108bmp_1_3_8f.fcfx
(13.96 KiB) Downloaded 160 times
These users thanked the author STibor for the post (total 3):
Benj (Fri Jan 03, 2014 10:07 am) • lordhex (Mon Jan 06, 2014 10:35 pm) • medelec35 (Mon Jan 06, 2014 10:58 pm)
Rating: 15%
 

lordhex
Posts: 54
Joined: Mon Dec 30, 2013 2:09 am
Has thanked: 15 times
Been thanked: 12 times
Contact:

Re: easy way to GLCD?

Postby lordhex » Mon Jan 06, 2014 10:36 pm

THANKS STiBOR THiS iS WHAT I EXACTLY LOOKING FOR.
and benj i hope in the future i will use ure code too i simulate 3 times hımmm still hard for me sorry everybody don't have the same IQ :(