Hi Glen. Does the following topic address your needs? http://www.mathworks.co.uk/matlabcentral/answers/67388-how-to-access-raspberrypi-i2c-in-simulink
C++ Code / I2C Raspberry Pi
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I have some existing c++ code which was compiled on my Pi to read the raw values from my IMU which is connected to the Pi's I2C GPIO pins.
I wish to build a simulink model using these raw values, is there any way I can either edit my code to send the data to simulink - or compile the code within simulink to run with my developed model on the Pi?
I have read into developing a cross-compiler, but this seem very complex for windows to pi.
Best Wishes Glen
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Raspberry Pi Hardware 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!