Go Down

Topic: MENWIZ: yet another character lcd menu wizard library (Read 78 times) previous topic - next topic

brunialti

Nice video!
this should print your char after the letter V of the first line. You have to put the code chunks at the proper place...

Code: [Select]
byte  Moon[8] = {
B00100,
B01000,
B11000,
B11001,
B11001,
B11111,
B01110,
B00000
};
.....
lcd.createChar(6, Moon);
.....
sprintf(menu.sbuf,"MENWIZ TEST V %s\n.Free mem. :%d\n.Used mem  :%d\n.Lap secs  :%d",menu.getVer(),menu.freeRam(),mem-menu.freeRam(),5);
menu.sbuf[13]=6;
menu.addSplash((char *) menu.sbuf, 5000);


Khalid

wow..Thank You...thank you for helping me and thank you for the MENWIZ:).. i shall make some more videos and post here... I am currently making controller for the suntracker..once completed in a good box, i shall make the working video.

Khalid

#277
Dec 27, 2012, 05:24 pm Last Edit: Dec 27, 2012, 05:42 pm by Khalid Reason: 1
Okay,
The symbol of Moon is working now:)..but as the parameters changes it changes it location... Now i want it to fixed place at the end of the buffer. Can we measure the size of buffer sbuf?

EDIT:
If you tell me a method then its good..else the sun symbol moving back and forth looks good:)

brunialti

khalid, you can count...
use strlen and put the character at the returned position-1

Khalid

okay got it:

int x=strlen(menu.sbuf);
then

i will place the Moon at x-1.
Regards

Go Up