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
Tim 2021년 1월 18일

0 개 추천

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