Discussion in "ARM Development" started by    mhel    Dec 23, 2007.
Wed Dec 26 2007, 11:14 am
#11
hmm ,,
well then i m gonna convert that 51 code that too as early as possible... just be with me....
Wed Dec 26 2007, 10:48 pm
#12
hi mhel,
cudnt find the following definitions....
byte_basso(dato);
 byte_alto(dato);


plz.. check if u have them n which file.....
Wed Dec 26 2007, 11:22 pm
#13
I couldn't find that part too, I assumed it's sending the low byte first then high byte,
that's what I did in my attempt. I think it's in Italian.

I only got that zip file. There was no contact infor for the guy, else I would have asked him.
Sun Jan 06 2008, 05:32 am
#14
Hi,
I'm making some progress , I manage to display something but it's not as expected.
I'm using 5x8 font only. The text display overlaps, characters are too close to each other or the mapping is incorrect, the graphics is chopped on the bottom. I think it's related to the current_addr_pointer().

Shyam: if you have time, maybe you could look at the attached. I can't figure out where the value 1024 came from, 128x8=1024, but the original author uses 128x128 lcd, mine is 240x128. Also perhaps you could make changes on the struct, it's tedious to add those brackets in the array, I get warnings/errors without them. If you do then wbm() would have to be changed too I think.

this is how test it, same as in the original
  do
    {
      i = 0;
      do
        {
          gotoxy(i, i);
          box(239-4*i, 127-4*i);
          refresh_LCD(0);						//refresh for each box
          pause(QUARTER_SEC);
        }while (i++ < 16);
      set_display(F5x8, (flag) ? NORMAL : REVERSE);
      flag = !flag;
    }while (flag);
    
   	pause(FIVE_SEC);

	//clearlcd (ALL);

	// test fonts
 	set_display(F5x8, NORMAL);
 	gotoxy(2,2); wrstr("5/8 FONT");

refresh_LCD(0);


Thanks.
Sun Jan 06 2008, 05:35 am
#15
7zip files is not supported , I forgot about it.
Attachment


Edit: how do I update the attachment I want to reupload a new one???


[ Edited Sun Jan 06 2008, 07:34 am ]
 shyam like this.
Sun Jan 06 2008, 07:11 am
#16
the box routine is working ok, somehow I'm limited to 127x63 size of box. still trying to find which to hack in the font drawing is still the same.

EDIT: fixed the box, parameters in hline/vline were signed char changed to int16_t, there's still problems
some pixels on the right are not drawn/erased.
EDIT2: now, the box is really fixed
changed in clearfiled()
const uint8_t blank[] ={ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }; 

to:
const uint8_t blank[] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };


the font drawing is really tough I need help on that one, but I'm kinda a glad I got this going


[ Edited Sun Jan 06 2008, 07:31 am ]
Sun Jan 06 2008, 07:12 pm
#17
hi mhel got this attatchment....
will lokk on to it....
Sun Jan 06 2008, 07:28 pm
#18


7zip files is not supported , I forgot about it.

Attachment


Edit: how do I update the attachment I want to reupload a new one???

mhel



if you want then i can add 7z extention to be uploaded.. but the reason is.. its not supported by all..
post a screenshot of your LCD.. wanna see the gfx
Sun Jan 06 2008, 09:48 pm
#19
Thanks guys, but I freaking did it my bit rotation was wrong, I just have that cut and paste from post somewhere didn't really know it's inner working, I actually attempted it in assembly, but got lost.
I still don't know where the 1024 value came from tho.

Shyam: Thanks for the time, maybe you should look at this new attachment and see what I'm missing, although it seems to be working I'd like to be able to place bitmap graphic too.

Ajay: I actually just found out about 7zip, it's free why not support it?

I attached a screenshot.
BTW, this is just a home project, I'm just a hobbyist, that's why I'm glad I found this site, with lots of good tutorials and such, not to mention the knowledgeable people that are willing to help. Thank you.


Sun Jan 06 2008, 11:48 pm
#20
hi mhel...
i understand how excited u wud be for this project runnning in front of u...
u have done a lot of hard work....

i hve been out of my office for a long time... cud not look on the code...
to save time if u cud just sent us the complete application... it wud save time...
cause i dont know which machine i'll be working on....
plus i wud request ajay to put it in download section as soon as the scrolling thing is done...
BTW i ve started working on menuing...
wud post the tested application/code soon...

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Michailqfh
Fri Mar 29 2024, 01:53 am
Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm