speeduino
speeduino copied to clipboard
Fix possible pin conflicts
This PR mostly affects possible pin conflicts on STM32, but should be good addition on Teensy too.
- Add SD-card SPI-pins to STM32
pinIsReserved
-list (if used) - Use
pinIsUsed
-list instead ofpinIsOutput
-list for selectable inputs. (this adds thepinIsReserved
and mandatory analog sensor pins for the list of pins that can't be selected) - For features that have selectable output pins, only set as output if needed and check if pin is in the
pinIsReserved
-list