diff options
author | yn386 <wf.yn386@gmail.com> | 2022-08-28 15:40:00 +0900 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-09-06 15:22:16 +1000 |
commit | 8770cd2f4d24b1ad14c934b4161e42108fe98f84 (patch) | |
tree | 1b7a3d5b029e0e41e9f6509f02636ec6786694e2 /docs/esp8266/tutorial/network_basics.rst | |
parent | 4e4c28bf27ff4a9e1a2ce5b6fffa641d9a332507 (diff) |
stm32/adc: Make ADCAll.read_channel reject invalid channels.
pyb.ADC(channel) checks whether specified channel is valid or have ADC
capability but pyb.ADCAll().read_channel() does not.
This change adds checking whether specified channel is valid and throw
ValueError if channel is invalid. This is same as pyb.ADC().
Diffstat (limited to 'docs/esp8266/tutorial/network_basics.rst')
0 files changed, 0 insertions, 0 deletions