Discussion in "Project Addition or Changes" started by    tahirmaqsood    Sep 26, 2010.
Thu Nov 11 2010, 09:24 pm
#51
Hi!

I already used FastLCD, changed the &H to 0x and put everything into the fles. Now I learned a lot of uvision and would like to try to make it with it. Not a software-change again, plz
btw: I downloaded LCDStudio. Pretty cool, but toooooo much für my first project Will hide it for next time

But I fould another hint to change some setting in uvision to "large". When try this, the compilation can be finished, but the dispaly only shows "snow"

Might be that there is a collision because of the second LCD?! I will not use that. Shall I try to get rid of the codes of that part?!

Greetz
Wawa
Fri Nov 12 2010, 01:12 am
#52
hi Wawa
u was mixing files in ur previous files just add c files in project and include h files in main coding
use simple 3310 lcd and its function do not use normal lcd along with 3310 lcd in code that is mix to each other and gets confusion
Fri Nov 12 2010, 02:36 am
#53
thats what i thought...
OK... I will try. So one step back and ged rid of the normal LCD
I will post again

Ciao!
Fri Nov 12 2010, 09:14 am
#54
yes remove lines that r used for lcd replace them with 3310 lcd
better u make solve first ur icon display problem other things r simple
Fri Nov 12 2010, 09:33 pm
#55
Back again!

So I cleaned all the codes (remained marked as commend) and checked. Is working good, but I cannot attach theese pictures. OK - I'm a newby but now I'm some kind of frustrated.

Please have a look at the working version (attached) and tell me, how I have to implement the also attached picture.
To explain: The picture is attached three times:
1. as *.gif
2. as hex-Code in a *.txt-file made with "Nokia 3310 Image Encoder" (also attached)
3. as *.bas-file made with Fast LCD

ok - HOW do I have to write the commands?? I scanned nearly the whole www and found several possibilities:

1. Define in new *.c-file - or in new *.h-file
2. Define as
static const char *image[] = { ...};
or const unsigned char *image[] = { ...};
or static const char image[] = { ...}; //without *
or const unsigned char image[] = { ...};
3. Include as
for(i=0;i<i;i++) spisend(image[166]);
or spisend(image[166]);
or spisend(image[]);
or putstr (unsigned char image);

well - I think I tried every possible combination whitch costs me hundres of grey hairs, but I didnt find a solution. Most errors displayed have been: NOKIA3310.C(47): error C202: 'image': undefined identifier

So anybody can tell me how to tell the f*** machine to display this f*** image???

Best regards from Germany
Wawa
Sun Nov 14 2010, 12:36 am
#56
well you have finished with everything i guess

now.. define logo as a cost coz we dont want it to use our ram its precious

const unsigned char code image[504] = { /* img data */ };

//now the loop...
//Bring pointer to 0,0 pixel position
pixelxy(0,0);
//Write gfx data on LCD
for(i=0;i<504;i++)
	wrdata(image[i]);


you're done
 Wawa like this.
Sun Nov 14 2010, 01:31 pm
#57
Hi Ajay,

thank u for this code. It almost works.... There is something displayed on the LCD. Its part of the wanted image, but its ..... rolling - i mean changing, U know?!

For it should be some kind of start-up-screen the original Code request should be after... but nothing els happens... only this rolling image. I put the soures as attachment

Could you help again?!
Thanks a lot!
Wawa


[ Edited Sun Nov 14 2010, 08:01 pm ]
Sun Nov 14 2010, 09:02 pm
#58
Update

When testing over and over again I made theese changes (new version attached):

First of all I inserted "while(getkey()!=10);" after row 077 to have a defined interrupt as wanted. ok

Then I tried to get a propper display of the image: Its interesting what I found: Until

for(i=0;i<255;i++)
wrdata(logo[i]);

the logo is drawn until there (see attached picture "result.jpg"), but when I change the 255 to 256 or higher, only the first drawn part is displayed in a loop... (see attached pictures "loop1.jpg" and "loop2.jpg")

How can I fix it?!

Greetz from Germany (the country of the NEW Formula1-Worldchampion)
Wawa

Sun Nov 14 2010, 10:42 pm
#59

for(i=0;i<255;i++)
wrdata(logo[i]);


what if u try to chage it to this. what happen.?

for(i=0;i<504;i++)
wrdata(logo[i]);



hey wawa, how did u make a logo i mean how did u generate the hex file for the logo? i want to make one also i see the picture of your work

how to generate this hex?
const unsigned char *logo[] = {
0x00 , 0x80 , 0x80 , 0x00 , 0x00 , 0x08 , 0x08 , 0x08 , 0x08 , 0x00 , 0x80 , 0x80 , 0x00 , 0x00 , 0x00 , 0x80,
0x00 , 0x80 , 0x80 , 0x00 , 0x00 , 0x08 , 0x08 , 0x08 , 0x08 , 0x00 , 0x80 , 0x80 , 0x00 , 0x00 , 0x00 , 0x80,
0x00 , 0x80 , 0x80 , 0x00 , 0x00 , 0x08 , 0x08 , 0x08 , 0x08 , 0x00 , 0x80 , 0x80 , 0x00 , 0x00 , 0x00 , 0x80,
0x00 , 0x80 , 0x80 , 0x00 , 0x00 , 0x08 , 0x08 , 0x08 , 0x08 , 0x00 , 0x80 , 0x80 };


[ Edited Sun Nov 14 2010, 10:45 pm ]
Sun Nov 14 2010, 11:32 pm
#60
Hey!
nice to read you again Like your photos... do u know all of them ??

When I change from 255 to more (e.g. 504) I get a loop of the first 255 but not the whole pic
Now I make some tests with splitting the image into two parts ... seems to work

Creating the hex fiel is very easy using the "nokia 3310 Image encoder" or "FastLCD" Just drag and drop!

Well even if my part-to-part-solutiion works I would like to know how to do it correctly...

Wawa
 romel_emperado like this.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am