Hello, i am new here.
i want to use 2 different spi ports in parallel connected to different hardware. Single SPI is fine:
SPI.begin();
SPI.setClockDivider(SPI_CLOCK_DIV4);
SPI.setDataMode(SPI_MODE0);
SPI.setBitOrder(MSBFIRST);
I have only found 1 advice to use the second SPI port:
SPIClass SPIII(PB15, PB14, PB13);
SPIII.begin();
SPIII.setClockDivider(SPI_CLOCK_DIV4);
SPIII.setDataMode(SPI_MODE0);
SPIII.setBitOrder(MSBFIRST);
Trying to use the SPI ports:
sendbuffer[10] = SPI.transfer(0); is fine , works.
sendbuffer[4] = SPIII.transfer(0); does not work. The error message is:
src\main.cpp:264:19: error: ‘SPIII’ was not declared in this scope; did you mean ‘SPI’?
I have no idea what’s wrong.
It would be nice to get some help.
Thanks in advance.
Ulrich