summaryrefslogtreecommitdiffstatshomepage
path: root/tests/pyb/dac.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pyb/dac.py')
-rw-r--r--tests/pyb/dac.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pyb/dac.py b/tests/pyb/dac.py
new file mode 100644
index 0000000000..61ab7bd6e6
--- /dev/null
+++ b/tests/pyb/dac.py
@@ -0,0 +1,8 @@
+dac = pyb.DAC(1)
+print(dac)
+dac.noise(100)
+dac.triangle(100)
+dac.write(0)
+dac.write_timed(bytearray(10), 100, mode=pyb.DAC.NORMAL)
+pyb.delay(20)
+dac.write(0)