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
This commit is contained in:
parent
bb35f425f9
commit
5813efd634
@ -202,7 +202,9 @@ STATIC mp_obj_t adc_read(mp_obj_t self_in) {
|
||||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(adc_read_obj, adc_read);
|
||||
|
||||
/// \method read_timed(buf, freq)
|
||||
/// Read analog values into the given buffer at the given frequency.
|
||||
/// Read analog values into the given buffer at the given frequency. Buffer
|
||||
/// can be bytearray or array.array for example. If a buffer with 8-bit elements
|
||||
/// is used, sample resolution will be reduced to 8 bits.
|
||||
///
|
||||
/// Example:
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user