Change SPI Instance #42
geocheats2
started this conversation in
General
Replies: 3 comments 7 replies
-
I guess it is not OK to modify the default SPI instance. |
Beta Was this translation helpful? Give feedback.
5 replies
-
To anyone wondering how do to change the SPI instance of this library !!! Warning tested only on STM32F4xxxxxxx !!! Its not pretty but it works
|
Beta Was this translation helpful? Give feedback.
0 replies
-
why not or did you try |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Do you have any idea how could i change the SPI instance from SPI to SPI_4
I have tried pretty much everything and nothing seems to work
MCU STM32F446VE
Tried:
@ Enc28j60Network.cpp
void Enc28J60Network::initSPI() { if (spiInitialized) return; pinMode(csPin, OUTPUT); CSPASSIVE; SPI.setMISO(pinname) SPI.setMOSI(x) SPI.setSCLK(x) SPI.begin(); spiInitialized = true; }
Tried redefining SPIClass SPI with on SPI.h with the pins of SPI_4
Tries changing the default pins of SPI @ variant.h
Ethernet Works Great @ SPI but not @ SPI_4
Beta Was this translation helpful? Give feedback.
All reactions