Hi,
I'm trying to program Arduino with the Matlab Simulink code generator. Simulink only compiles C code and cannot compile object-oriented C++ libraries.
I need to use SPI.h in my code but since it's written in C++ Simulink is unable to compile it.
I tried to make a C wrapper around the SPI.h file but SPI.h is a rather complicated file for that method.
Is there any SPI library available in C? or an easy way to wrap SPI.h in C?
note that object-orientation is the main issue here!!!
thanks in advance.
Are you trying to communicate with something other than the Arduino you are programming?
Are you doing this C wrapping to program your Arduino in slave/follower mode?
If not, why can't you use SPI Master Read/Write blocks?
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.