Pin D10 definition on Nucleo L476
Pin D10 definition on Nucleo L476
On Nucleo 64 L476 there is a digital pin, D10 that can be either TIM4_CH1 or SPI1_CS. How to choose SPI1_CS by Arduino IDE?
This is automatically set by the feature you used. If you use the pin D10 for the SPI CS then it will use it as CS.
Each pin capabilities are defined in a file called PeripheralPins.cpp:
https://github.com/stm32duino/Arduino_C ... #L289-L297
In the case of L476, D10 is PB6 and does not have hardware SPI CS and is used like a software CS managed by the SPI library.
Go to full postEach pin capabilities are defined in a file called PeripheralPins.cpp:
https://github.com/stm32duino/Arduino_C ... #L289-L297
In the case of L476, D10 is PB6 and does not have hardware SPI CS and is used like a software CS managed by the SPI library.
Re: Pin D10 definition on Nucleo L476
This is automatically set by the feature you used. If you use the pin D10 for the SPI CS then it will use it as CS.
Each pin capabilities are defined in a file called PeripheralPins.cpp:
https://github.com/stm32duino/Arduino_C ... #L289-L297
In the case of L476, D10 is PB6 and does not have hardware SPI CS and is used like a software CS managed by the SPI library.
Each pin capabilities are defined in a file called PeripheralPins.cpp:
https://github.com/stm32duino/Arduino_C ... #L289-L297
In the case of L476, D10 is PB6 and does not have hardware SPI CS and is used like a software CS managed by the SPI library.
Re: Pin D10 definition on Nucleo L476
Thanks a lot!