speeduino icon indicating copy to clipboard operation
speeduino copied to clipboard

Fix possible pin conflicts

Open pazi88 opened this issue 2 years ago • 0 comments

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 of pinIsOutput -list for selectable inputs. (this adds the pinIsReserved 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

pazi88 avatar May 24 '22 08:05 pazi88