Page 1 of 1

easy way to GLCD? Solved ty to helpers.

Posted: Tue Dec 31, 2013 3:20 am
by lordhex
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

Re: easy way to GLCD?

Posted: Thu Jan 02, 2014 11:54 am
by Benj
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 390 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.

Re: easy way to GLCD?

Posted: Thu Jan 02, 2014 8:25 pm
by STibor
Hi,

A simple example program bmp 24x16 pixel processing.
Bmp file to extract the HxD HexEditor edited.

Re: easy way to GLCD?

Posted: Fri Jan 03, 2014 2:47 am
by lordhex
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 :(

Re: easy way to GLCD?

Posted: Fri Jan 03, 2014 3:03 am
by lordhex
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?

Re: easy way to GLCD?

Posted: Fri Jan 03, 2014 6:27 am
by STibor
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.

Re: easy way to GLCD?

Posted: Mon Jan 06, 2014 10:36 pm
by lordhex
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 :(