We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2de4d59 commit eee3128Copy full SHA for eee3128
1 file changed
stmhal/dac.c
@@ -62,7 +62,7 @@
62
/// # create a buffer containing a sine-wave
63
/// buf = bytearray(100)
64
/// for i in range(len(buf)):
65
-/// 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)))
66
///
67
/// # output the sine-wave at 400Hz
68
/// dac = DAC(1)
0 commit comments