EDIT: let me see...
EDIT: let me see...
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
mmm, must be too drunk and blind now..
what if you add
at the top of your code?Code:ansel=3 trisa=3
what if you forget the decimal point but use
instead?Code:lcdout $fe,2,"VOLTAGE..",dec volt," V" lcdout $fe,$c0,"TEMP.....",dec temp," C"
Last edited by mister_e; - 7th December 2007 at 21:23.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
[/QUOTE]Code:lcdout $fe,2,"VOLTAGE..",dec volt," V" lcdout $fe,$c0,"TEMP.....",dec temp," C"
Shouldn't that be dec (volt/100) and dec (volt // 100) above?
Thanks for the help
The code is correct like Mister-e posted because the reading values are 0.xx and with the /100 i would have just 0 !
Changed everything but i still get
porta.1 = 17
and
porta.0 = 0
changing each other i still get the same on lcd
.
out of curiosity, which version of PBP are you using? i've never ever used ADCIN in my program since over 5-6 years.
I may bet on some averaging... but i hate to bet on friday![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks