You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Arduino mode, the OpenCM-904 already has drawn out nicely 2 SPI Ports on its two headers.
In the file "SPI.h", Line 114, I saw that SPI is defined as extern SPIClass SPI;
Then in the file "SPI.cpp", Line 25, I saw that only SPI1 is used by default. So I added SPI2 on Line 26 (and commented out Line 25).
With this setup, I can use EITHER SPI1 or SPI2 Port fine, but I need to use BOTH SPI Ports at the same time for my project. Header pins wise, there are no problems, but software wise how should I approach this issue?
I also saw the comments on Lines 63-66 - is that relevant/workable?
The way multiple SPI devices are handled as shown in "Arduino Cookbook" is very different from the way ROBOTIS is handling this issue for OpenCM-904. The use of "extern SPIClass SPI" - is that really needed? Did ROBOTIS write the OpenCM-904 library so that only ONE SPI can be used at any one time?
Thank you for any pointer.
The text was updated successfully, but these errors were encountered:
In Arduino mode, the OpenCM-904 already has drawn out nicely 2 SPI Ports on its two headers.
In the file "SPI.h", Line 114, I saw that SPI is defined as extern SPIClass SPI;
Then in the file "SPI.cpp", Line 25, I saw that only SPI1 is used by default. So I added SPI2 on Line 26 (and commented out Line 25).
With this setup, I can use EITHER SPI1 or SPI2 Port fine, but I need to use BOTH SPI Ports at the same time for my project. Header pins wise, there are no problems, but software wise how should I approach this issue?
I also saw the comments on Lines 63-66 - is that relevant/workable?
The way multiple SPI devices are handled as shown in "Arduino Cookbook" is very different from the way ROBOTIS is handling this issue for OpenCM-904. The use of "extern SPIClass SPI" - is that really needed? Did ROBOTIS write the OpenCM-904 library so that only ONE SPI can be used at any one time?
Thank you for any pointer.
The text was updated successfully, but these errors were encountered: