How do I install the library for the MakeBlock Ultimate 2.0 MeMega2560 (Arduino 2560) into Matlab?

조회 수: 1 (최근 30일)
How do I install the library for the MakeBlock Ultimate 2.0 MeMega2560 (Arduino 2560) into Matlab?
It is located at
and in PlatformIO is called with
lib_deps = https://github.com/Makeblock-official/Makeblock-Libraries.git
or
lib_deps = Makeblock-official/Makeblock-Libraries
or
lib_deps = MakeBlockDrive
MATLAB gives me
>> a = arduino('COM6','Mega2560','Libraries','MakeBlockDrive')
Expected libraries to match one of these values:
'Adafruit/MotorShieldV2', 'Arduino/MKRMotorCarrier', 'I2C', 'RotaryEncoder', 'SPI', 'Servo', 'ShiftRegister', 'Ultrasonic'
The input, 'MakeBlockDrive', did not match any of the valid values.
>> a = arduino('COM6','Mega2560','Libraries','MakeBlock')
Expected libraries to match one of these values:
'Adafruit/MotorShieldV2', 'Arduino/MKRMotorCarrier', 'I2C', 'RotaryEncoder', 'SPI', 'Servo', 'ShiftRegister', 'Ultrasonic'
The input, 'MakeBlock', did not match any of the valid values.
>> a = arduino('COM6','Mega2560','Libraries','Makeblock-official/Makeblock-Libraries')
Expected libraries to match one of these values:
'Adafruit/MotorShieldV2', 'Arduino/MKRMotorCarrier', 'I2C', 'RotaryEncoder', 'SPI', 'Servo', 'ShiftRegister', 'Ultrasonic'
The input, 'Makeblock-official/Makeblock-Libraries', did not match any of the valid values.
>> a = arduino('COM6','Mega2560','Libraries','https://github.com/Makeblock-official/Makeblock-Libraries.git')
Expected libraries to match one of these values:
'Adafruit/MotorShieldV2', 'Arduino/MKRMotorCarrier', 'I2C', 'RotaryEncoder', 'SPI', 'Servo', 'ShiftRegister', 'Ultrasonic'
The input, 'https://github.com/Makeblock-official/Makeblock-Libraries.git', did not match any of the valid values.
>> lib=listArduinoLibraries()
Warning: Class arduinoio.LibraryBase will be removed. Following Add-On classes need to be updated to work in future release :
Arduino/MKRMotorCarrier. Follow steps mentioned in this Arduino Add-On document to update. Click here to turn off this warning.
Warning: Class arduinoio.AddonBase will be removed. Inherit class arduinoioaddons.arduino.MKRRotaryEncoder from
matlabshared.addon.LibraryBase instead. For more information, see Arduino Add-On document.Click here to turn off this warning.
lib =
8×1 cell array
{'Adafruit/MotorShieldV2' }
{'Arduino/MKRMotorCarrier'}
{'I2C' }
{'RotaryEncoder' }
{'SPI' }
{'Servo' }
{'ShiftRegister' }
{'Ultrasonic' }

답변 (1개)

Liviu-Marian Taciuc
Liviu-Marian Taciuc 2021년 11월 19일
Hi, did you find any solution for this problem?

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by