Error creating LCD object (create LCD add-on)
显示 更早的评论
I've followed the guide "create LCD add-on". I have some troubles when I create the LCD object.
The issue is the following:
lcd = addon(a,'ExampleLCD/LCDAddon','RegisterSelectPin','D7','EnablePin','D6','DataPins',{'D5','D4','D3','D2'});
Unrecognized property 'RegisterSelectPin' for class 'arduinoioaddons.ExampleLCD.LCDAddon'.
I'm sure that I well copied the guide in every step.
Thanks in advance
回答(1 个)
Tim
2021-1-18
I was able to get past this error by adding several properties to the LCDAddon class in LCDAddon.m. (Note: I also needed to move LCDAddon.h to LCD.h to get the example running).
properties(Access = private)
RegisterSelectPin
EnablePin
DataPins
Pins
end
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Support Package for Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!