thunderace7
New Member
Hi. I believe I have found an error in the ADCSetup command description in Manual2. Or it might be that I have misunderstood what it means.
In the section for the 28x2 it says:
Example: let adcsetup = %0000000000001111 ; set ADC0,1,2,3
But in the section for 28x2 -5v it says:
Example: let adcsetup = 4 ; set ADC0,1,2,3 as analogue
From this I assume that the mask is just a number and can be represented in any base that the picaxe understands (decimal, binary, hex or octal). If this is so, surely the second example sets only ADC2 as analogue?
Or have I misunderstood it?
In the section for the 28x2 it says:
Example: let adcsetup = %0000000000001111 ; set ADC0,1,2,3
But in the section for 28x2 -5v it says:
Example: let adcsetup = 4 ; set ADC0,1,2,3 as analogue
From this I assume that the mask is just a number and can be represented in any base that the picaxe understands (decimal, binary, hex or octal). If this is so, surely the second example sets only ADC2 as analogue?
Or have I misunderstood it?