summaryrefslogtreecommitdiff
path: root/docs/library
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2019-09-03 13:05:10 +1000
committerDamien George <damien.p.george@gmail.com>2019-09-03 23:25:45 +1000
commit74fe8414499c9a156dfcf348c091b3bcef4caac3 (patch)
treeb6235c156d4da307d2cb18d8ca29e6dcb5eaabd5 /docs/library
parent50482cdc0c50c53f43953cf101e586c34f5588ad (diff)
docs/library/pyb.DAC.rst: Correct frequency for triangle mode output.
Also correct comments in related code.
Diffstat (limited to 'docs/library')
-rw-r--r--docs/library/pyb.DAC.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/library/pyb.DAC.rst b/docs/library/pyb.DAC.rst
index c67603a71..9a465b9ce 100644
--- a/docs/library/pyb.DAC.rst
+++ b/docs/library/pyb.DAC.rst
@@ -93,9 +93,9 @@ Methods
.. method:: DAC.triangle(freq)
- Generate a triangle wave. The value on the DAC output changes at
- the given frequency, and the frequency of the repeating triangle wave
- itself is 2048 times smaller.
+ Generate a triangle wave. The value on the DAC output changes at the given
+ frequency and ramps through the full 12-bit range (up and down). Therefore
+ the frequency of the repeating triangle wave itself is 8192 times smaller.
.. method:: DAC.write(value)