diff options
Diffstat (limited to 'tests/pyb/adcall.py')
-rw-r--r-- | tests/pyb/adcall.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/pyb/adcall.py b/tests/pyb/adcall.py index afc3033ea..cfe179a97 100644 --- a/tests/pyb/adcall.py +++ b/tests/pyb/adcall.py @@ -5,19 +5,19 @@ pins = [Pin.cpu.A0, Pin.cpu.A1, Pin.cpu.A2, Pin.cpu.A3] # set pins to IN mode, init ADCAll, then check pins are ANALOG for p in pins: p.init(p.IN) -adc = pyb.ADCAll(12) +adc = ADCAll(12) for p in pins: print(p) # set pins to IN mode, init ADCAll with mask, then check some pins are ANALOG for p in pins: p.init(p.IN) -adc = pyb.ADCAll(12, 0x70003) +adc = ADCAll(12, 0x70003) for p in pins: print(p) # init all pins to ANALOG -adc = pyb.ADCAll(12) +adc = ADCAll(12) print(adc) # read all channels |