How do you include Arduino.h when using mex to compile C code?

I'm trying to follow the tutorial above but when I attempt to use mex I get the error below.
Error using mex
/home/USERNAME/Documents/Source/digitalio_arduino.cpp:1:21: fatal error: Arduino.h: No
such file or directory
compilation terminated.
What do I have to do to get Arduino.h to mex?
I'm using Ubuntu 16.04.

1 comentario

When set up mex the include directory is defined; need to put the file wherever that is on your system.

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB Compiler SDK en Centro de ayuda y File Exchange.

Preguntada:

el 22 de Ag. de 2018

Respondida:

el 24 de Ag. de 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by