how to use i2c lcd on matlab/simulink ?
i want to display the hello world text and controling the cruser location from simulink
1st image shows the files in my working directory
--------------------------------------------
here is what i have wrote in the s-function
Data Properties -> inpute ports
both unint 8
Data Properties -> Outputs ports
none
Libraries -> includes
[center][color=#6f6f6f][/color][/center][center][color=#6f6f6f][/color][/center]
#ifndef MATLAB_MEX_FILE
#define ARDUINO [color=#a020f0]100[/color]
#include <Arduino.h>
#include [color=#a020f0]"OneWire.h"[/color]
#include [color=#a020f0]"OneWire.cpp" [/color]
#include [color=#a020f0]"LiquidCrystal_I2C.h"[/color]
#include [color=#a020f0]"LiquidCrystal_I2C.cpp"[/color]
LiquidCrystal_I2C [color=#a020f0]lcd(0x27,16,2)[/color];
#endif
Outputs
#ifndef MATLAB_MEX_FILE
lcd.init();
lcd.init();
lcd.backlight();
lcd.setCursor(cruserX[0],cruserY[0]);
lcd.print([color=#a020f0]"Hello, world!"[/color]);
#endif
--------------------------------------------
i did add extern "C" befor void in the i2cLCD_wrapper.cpp file
and as u can see i changed its extension fron c to cpp
--------------------------------------------
this is how my s-function looks
--------------------------------------------
and the error file is also attached please have a look at it
i2cLCDardmatTEST_20210317_003952.txt (7.74 KB)