Not enough input arguments in addon function for arduino UNO.

2 views (last 30 days)
MohammadZuhaib Mansoor
MohammadZuhaib Mansoor on 1 Mar 2022
Answered: Cris LaPierre on 19 Apr 2022
I am trying to add an lcd object for my arduino uno, and I am getting an error saying not enough input arguments in the addon function. Please can someone help me with this. Thanks
  1 Comment
Atiya Anwar
Atiya Anwar on 19 Apr 2022
Hello, I am running into the same issue. Were you able to figure it out?

Sign in to comment.

Answers (1)

Cris LaPierre
Cris LaPierre on 19 Apr 2022
I can't test, but I suspect you need to you the following syntax
So the first 2 inputs appear as expected, but the third input may need to be paired with a 'Name'. You can find the 'Name' values listed in the documentation here.
As an example, here is what a call to addon looks like from an example on the linked documentation page. there are two name-value pair inputs (I2CAddress and PWMFrequency).
a = arduino('COM4','Uno','Libraries','Adafruit/MotorShieldV2');
motor = addon(a,'Adafruit/MotorShieldV2','I2CAddress','0x61','PWMFrequency',1200)

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!