Analog pins definition #37
Labels
enhancement
New feature or request
help wanted 🙏
Extra attention is needed
question ❓
Usually converted as a discussion
Hi all,
I would like to open a discussion around the analog pins definition Ax
Currently, we mainly defined A0 to A5 but STM2 MCU provide more than 6 ADC.
And in PinMap_ADC we make available more than A0-A5.
So, constant NUM_ANALOG_INPUTS is not aligned.
Questions are:
Is it required to define more than A0 to A5 by default ?
If not then, only comment the other pins in PinMap_ADC.
If yes, extend the Ax to the same number of pins defined in PinMap_ADC. This will imply to duplicate some pin definitions in digital_arduino array or reordering it.
Furthermore, after discussion with Arduino developper, the AnalogRead(A0) == AnalogRead(0) should be the same while AnalogWrite(0) == AnalogWrite(D0).
For constant value, it should be changed to not use sizeof to avoid issue:
Any feedback are welcome here on in the stm32duino forum dedicated topics
Note: I took as example the Nucleo F429ZI but it is valid far all variant.
The text was updated successfully, but these errors were encountered: