summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp8266/tutorial
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-07-01 12:04:48 +1000
committerDamien George <damien@micropython.org>2021-07-05 16:03:11 +1000
commit86ef96535295de130185dcf41f0c514cf5192ae4 (patch)
tree9f6540b9a4232b5bc6b7922fd69673f2cda1db34 /docs/esp8266/tutorial
parent0e11966ce9ea2345458d2e6127ee28486c4cb65d (diff)
downloadmicropython-86ef96535295de130185dcf41f0c514cf5192ae4.tar.gz
micropython-86ef96535295de130185dcf41f0c514cf5192ae4.zip
stm32/adc: Simplify and generalise how pin_adcX table is defined.
The ADC_FIRST_GPIO_CHANNEL and ADC_LAST_GPIO_CHANNEL macros are no longer needed. Instead the pin_adcX table (X = 1, 2, 3) is now generated to be the exact size needed for a given MCU, and MP_ARRAY_SIZE(pin_adcX) is used to determine the upper bound. This commit also allows CPU pins to be excluded from ADC configuration if they are hidden by prefixing their name with a "-". Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp8266/tutorial')
0 files changed, 0 insertions, 0 deletions