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 个)

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 的更多信息

标签

提问:

2020-3-10

回答:

Tim
2021-1-18

Community Treasure Hunt

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

Start Hunting!

Translated by