Skip to content
Snippets Groups Projects
Commit eee31288 authored by Damien George's avatar Damien George
Browse files

stmhal: Fix DAC documentation: need to convert float to int for buf.

parent 2de4d591
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@
/// # create a buffer containing a sine-wave
/// buf = bytearray(100)
/// for i in range(len(buf)):
/// buf[i] = 128 + 127 * math.sin(2 * math.pi * i / len(buf))
/// buf[i] = 128 + int(127 * math.sin(2 * math.pi * i / len(buf)))
///
/// # output the sine-wave at 400Hz
/// dac = DAC(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment