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

Respuestas (1)

Tim
Tim el 18 de En. de 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

Categorías

Más información sobre MATLAB Support Package for Arduino Hardware en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 10 de Mzo. de 2020

Respondida:

Tim
el 18 de En. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by