diff --git a/tests/psoc6/adc.py.exp b/tests/psoc6/adc.py.exp index 7871f4ccc602..acf3080c7150 100644 --- a/tests/psoc6/adc.py.exp +++ b/tests/psoc6/adc.py.exp @@ -1,4 +1,4 @@ Invalid ADC Pin - + True True diff --git a/tests/psoc6/adcblock.py b/tests/psoc6/adcblock.py index e5ee32af99e9..3d47eb9f52f3 100644 --- a/tests/psoc6/adcblock.py +++ b/tests/psoc6/adcblock.py @@ -1,7 +1,9 @@ """ ADCBlock test for the PSoC6 port. """ -from machine import ADCBlock, Pin +from machine import Pin, ADCBlock + +print("ADCBlock tests") pin = Pin("P10_0") @@ -16,7 +18,7 @@ except: print("TypeError: Invalid bits. Current ADC configuration supports only 12 bits resolution!") -adcBlock = ADCBlock(0, bits=12) +adcBlock = ADCBlock(0) try: adcPin = adcBlock.connect(1, pin)