rberek
Joined: 10 Jan 2005 Posts: 207 Location: Ottawa, Canada
|
|
Posted: Wed Feb 22, 2006 2:20 pm |
|
|
adc_read does not return a float value, it returns a hex value. If you have selected an 8-bit ADC, then it will return 0xFF if the pin is 5V and 0x00 if there is 0V on the pin, etc.. You have to perform the math on the hex value to turn it back into a voltage. _________________ The difference between genius and stupidity is that genius has its limits... |
|