Thanks Steve,
I now have one line with one word, which changes when I toggle the i/p. (great just the job)
Do you know why I get no change when i toggle the other i/p.
Line 2 stays blank.
Thanks Steve,
I now have one line with one word, which changes when I toggle the i/p. (great just the job)
Do you know why I get no change when i toggle the other i/p.
Line 2 stays blank.
Yes i know... look how your program flow...
it goes to Disp1 or Disp2.. then it return to Loop... knowing that SW1 can't something else than 0 or 1.. it will never execute the IF SW4 = lines.
I would suggest to use GOSUB and RETURN for a quick fix.. and be careful with LCDOUT $FE,1 line in DISP3 & DISP4 routines...
Still possible to use another method...
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
you could still use something like..
Code:Loop: IF SW0=0 THEN ' Paste your Disp1 stuff here ELSE ' paste your Disp2 Stuff here ENDIF IF SW4 = 0 then ' Pate your DISP3 stuff here ELSE ' paste your DISP4 stuff here ENDIF GOTO Loop
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Sorted.
I just inserted a cupple of goto's and returns and It works fine on both lines now,
Many thanks for you and all for your help and advice,
Just one last thing, do you know of where I can get a list of lcdout $ commands as I would like to insert extra info togged by unused i/p's
Thanks
Dave...
The PBP manual has some. What are you looking for exactly?
Dave
Always wear safety glasses while programming.
I am looking for the lcdout commands, so I am able to send text to any position on a two line display,
Say, 1 command at the beginning of line 1 and another at the end of line 1
cheers
Dave..
Thats easy. Look in the manual for full explanation.
Same works for the second line where $C0 is the first position.Code:LCDOUT $FE, 80 ' First position of line one LCDOUT $FE, 80 + 4 ' Move over 4 places to the right
Dave
Always wear safety glasses while programming.
Bookmarks