This is my program:
#Picaxe 20X2
#Terminal 9600
#No_Table
#No_Data
symbol PotA = b.1 ;ADC2
symbol PotB = b.2 ;ADC4
symbol ValueA = b25
symbol ValueB = b24
symbol ValueC = b23
let adcsetup = %000000000010100
Test2:
readadc PotA, ValueA
readadc B.1, ValueB
readadc PotB, ValueC
pause 100
SerTxd(" PotA=",#ValueA," B.1=",#ValueB," PotB=",#ValueC, CR, LF )
goto Test2
I am getting a different value when I use the symbol PotA instead of B.1. Also, instead of reading B.2 (PotB) I seem to be picking up the B.1 value!!
Screen shot of terminal attached.
#Picaxe 20X2
#Terminal 9600
#No_Table
#No_Data
symbol PotA = b.1 ;ADC2
symbol PotB = b.2 ;ADC4
symbol ValueA = b25
symbol ValueB = b24
symbol ValueC = b23
let adcsetup = %000000000010100
Test2:
readadc PotA, ValueA
readadc B.1, ValueB
readadc PotB, ValueC
pause 100
SerTxd(" PotA=",#ValueA," B.1=",#ValueB," PotB=",#ValueC, CR, LF )
goto Test2
I am getting a different value when I use the symbol PotA instead of B.1. Also, instead of reading B.2 (PotB) I seem to be picking up the B.1 value!!
Screen shot of terminal attached.