Skip to content

Commit 5813efd

Browse files
committed
stmhal: pyb.adc: Clarify that buffer with elements of any size can be used.
Based on forum post: http://forum.micropython.org/viewtopic.php?f=6&t=193
1 parent bb35f42 commit 5813efd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

stmhal/adc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ STATIC mp_obj_t adc_read(mp_obj_t self_in) {
202202
STATIC MP_DEFINE_CONST_FUN_OBJ_1(adc_read_obj, adc_read);
203203

204204
/// \method read_timed(buf, freq)
205-
/// Read analog values into the given buffer at the given frequency.
205+
/// Read analog values into the given buffer at the given frequency. Buffer
206+
/// can be bytearray or array.array for example. If a buffer with 8-bit elements
207+
/// is used, sample resolution will be reduced to 8 bits.
206208
///
207209
/// Example:
208210
///

0 commit comments

Comments
 (0)