Discussion forum for the BasicX family of microcontroller chips.
|
Hi, I'm trying to read an input voltage of 3.2V from the BasicX. I want to input it into pin 13 and then output it. My current code is: Const Volt_in As Single = 0.0 Dim Volt_in_ADC As Single Const PinNumber As Byte = 13 Call GetADC(13, Volt_in_ADC) This should output 0-1.0 depending on the percentage of my 5V reference. I was wondering how to actually output onto the computer the value that the program is getting from teh GetADC function. Can I implement something like Voltage = Call GetADC(13, Volt_in_ADC)? and then manipulate Voltage like a varialble? any help would be greatly appreciated. THank you |