20x2 conversion wizard

rob nash

Senior Member
evening all,
Am testing some some adc values using a 20x2 and noticed that this code

Code:
#picaxe 20x2
#no_data



main:
do
pause 10

high c.0
high c.4

readadc 9,b1
readadc 7,b2
readadc 1,b3
readadc 2,b4
debug
loop
works as it does,when put though the P.E x2 conversion wizard changes the assigned pins
Code:
#picaxe 20x2

' Converted by X2 Conversion Wizard Version 2.0.5 (2010r4.1)

let dirsB = %11111111
let adcsetup = %0000001100001000

main:
do
pause 10

high c.0
high c.4

readadc 9,b1
readadc 3,b2      
readadc 9,b3    
readadc 8,b4
debug
loop
the wizard changed the adc pins, and am not sure but the adcsetup does'nt correspond to the pin?
am running P E 5.4.2

rob
 

Technical

Technical Support
Staff member
The wizard is to convert 20M code to 20X2, not to convert 20X2 code to... 20X2 code!
 
Last edited:
Top