Code:SEROUT2 lcd,396,[$FE,1,#variable]
Code:SEROUT2 lcd,396,[$FE,1,#variable]
Dave
Always wear safety glasses while programming.
I got this code to work:
But now I'm trying to get a ten digit number to display, something likeCode:DEFINE OSC 8 'Internal Oscillator set to 8mhz OSCCON.4=1 OSCCON.5=1 OSCCON.6=1 ANSEL=0 'Turns off A/D converter lcd Var PORTB.5 tag1 Var BYTE Pause 500 SEROUT lcd,0,[$FE,1] Pause 200 SEROUT lcd,0,[$FE,1,"Test"] Pause 2000 SEROUT2 lcd,396,[$FE,$C0,"2nd Line???"] tag1=123 SEROUT2 lcd,396,[$FE,$94,DEC tag1]
1000504B02
and i keep getting errors.
How are you storing this 10 digit number? In an array?
Dave
Always wear safety glasses while programming.
I'm not really sure how to store it, I tried just putting
But it truncates and displays only "FF"Code:tag1=100050A4B7
The easy way would be
If you are using PBP 2.50Code:tag1 Var LONG
Otherwise I would say you need to store it an array.
Dave
Always wear safety glasses while programming.
This is what I tried:
The LCD then displays a three digit display but it's symbols and not anything readable.Code:buf VAR BYTE(10) 'Tag code stored as word SERIN2 rx,396,[STR buf\10] SEROUT2 lcd,396,[$FE,$C0,STR buf\10]
I am feeling lazy, so I will point you here.
http://www.picbasic.co.uk/forum/showthread.php?t=544
Dave
Always wear safety glasses while programming.
Bookmarks