summaryrefslogtreecommitdiff
path: root/tests/pyb/dac.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pyb/dac.py')
-rw-r--r--tests/pyb/dac.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pyb/dac.py b/tests/pyb/dac.py
index 884ec5829..942f30354 100644
--- a/tests/pyb/dac.py
+++ b/tests/pyb/dac.py
@@ -1,5 +1,10 @@
import pyb
+if not hasattr(pyb, 'DAC'):
+ print('SKIP')
+ import sys
+ sys.exit()
+
dac = pyb.DAC(1)
print(dac)
dac.noise(100)