Error creating LCD object (create LCD add-on)
Show older comments
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
Answers (1)
Tim
on 18 Jan 2021
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
Categories
Find more on MATLAB Support Package for Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!