Bad post, sorry...
but I can' compile the code : "Cannot open file (Include file "P16F684.inc" not found)" ?!
Bad post, sorry...
but I can' compile the code : "Cannot open file (Include file "P16F684.inc" not found)" ?!
Last edited by fratello; - 24th February 2012 at 09:35.
I am so sorry .......
What a dumb I am ...
Of course, Mr. Darrel have the answer : http://www.picbasic.co.uk/forum/show...2195#post52195
Everything works just fine !
Everything works just fine ! Thanks again, Mr.Darrel !
One last (I hope) request : Can this "lint" be removed ? I try to find another value for "LCDOUT $nn", but without good results ...
Thanks !
Two ways ...
1) Add a 0 to the last LCDOUT ...2) You can make the battery icon 1 pixel taller ...Code:lcdout $1F,0Code:ELSE BattLevel = (Volts - MinBat +1) * 15 / (MaxBat - MinBat +1) ENDIF ENDIF GOSUB ShowBattery ENDIF RETURN ;----[Show Battery Icon 0 - 15, 0=Empty 15=Full]-------------------------- ShowBattery: lcdout $FE,$C0,1,$FE,$48,$0A,$1F for y = 5 to 1 step -1 if BattLevel >= (y * 3) then Char = $1F else if BattLevel >= (y * 3 - 1) then Char = $17 else if BattLevel >= (y * 3 - 2) then Char = $13 else Char = $11 endif endif endif lcdout Char next y lcdout $1F return
DT
Just finish to write my own code, based on previous source (see post #1 ), it's good for me ...BUT ...
Of course, Mr.Darrel solution it's BETTER !
I owe with some thousands of e-beer! Thanks again !
This is how my car-dashboard will be (this is beta version) ...
The original is in the last picture.
Last edited by fratello; - 27th February 2012 at 15:43.
Congratulations! Very good Job!!!
Thanks and Regards;
Gadelhas
Bookmarks