8000 docs/library/pyb.DAC.rst: Add DAC class constants. · iabdalkader/micropython@8715ad9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8715ad9

Browse files
Jos Verlindedpgeorge
Jos Verlinde
authored andcommitted
docs/library/pyb.DAC.rst: Add DAC class constants.
1 parent ba4f6f5 commit 8715ad9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/library/pyb.DAC.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,15 @@ Methods
122122
dac2 = DAC(2)
123123
dac1.write_timed(buf1, pyb.Timer(6, freq=100), mode=DAC.CIRCULAR)
124124
dac2.write_timed(buf2, pyb.Timer(7, freq=200), mode=DAC.CIRCULAR)
125+
126+
Constants
127+
---------
128+
129+
.. data:: DAC.NORMAL
130+
131+
NORMAL mode does a single transmission of the waveform in the data buffer,
132+
133+
.. data:: DAC.CIRCULAR
134+
135+
CIRCULAR mode does a transmission of the waveform in the data buffer, and wraps around
136+
to the start of the data buffer every time it reaches the end of the table.

0 commit comments

Comments
 (0)
0