diff options
author | Jos Verlinde <josverl@microsoft.com> | 2021-09-21 21:58:19 +0200 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-02-09 15:05:26 +1100 |
commit | 8715ad9ccfc45c25883fb1a7587c9f81da8133ab (patch) | |
tree | c96fe969948538e8a4852d679c142ada4ab7c379 /docs/library | |
parent | ba4f6f5fdf949924b44bf54291f6a860d6e36bff (diff) |
docs/library/pyb.DAC.rst: Add DAC class constants.
Diffstat (limited to 'docs/library')
-rw-r--r-- | docs/library/pyb.DAC.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/library/pyb.DAC.rst b/docs/library/pyb.DAC.rst index bf07119ad..0eb469bef 100644 --- a/docs/library/pyb.DAC.rst +++ b/docs/library/pyb.DAC.rst @@ -122,3 +122,15 @@ Methods dac2 = DAC(2) dac1.write_timed(buf1, pyb.Timer(6, freq=100), mode=DAC.CIRCULAR) dac2.write_timed(buf2, pyb.Timer(7, freq=200), mode=DAC.CIRCULAR) + +Constants +--------- + +.. data:: DAC.NORMAL + + NORMAL mode does a single transmission of the waveform in the data buffer, + +.. data:: DAC.CIRCULAR + + CIRCULAR mode does a transmission of the waveform in the data buffer, and wraps around + to the start of the data buffer every time it reaches the end of the table. |