フィルターのクリア

Why can't I use "arduino.supportpkg"?

1 回表示 (過去 30 日間)
Manuel Reimer
Manuel Reimer 2020 年 12 月 26 日
回答済み: Manuel Reimer 2020 年 12 月 26 日
I want to create a device driver module. To do so I have to add some "arduino.supportpkg" calls to the "Sink.m" based definition file.
To better understand where the paths actually are located, I tried the following on the MATLAB console:
>> arduino.supportpkg.getIDERoot
Which results in:
The class arduino has no Constant property or Static method named 'supportpkg'.
Why??
Edit: Found at the end of the documentation of those "supportpkg" functions that these have been introduced with Matlab 2020. But I have to use 2019 for my project. So can someone please tell me how this here:
worked with Matlab 2019? Where to get the old documentation for this?
  1 件のコメント
Manuel Reimer
Manuel Reimer 2020 年 12 月 26 日
Found it after searching for some time:
[ideRootPath, ~] = codertarget.arduinobase.internal.getArduinoIDERoot('libraries');
addIncludePaths(buildInfo, fullfile(ideRootPath, 'libraries', 'Servo', 'src'));
srcFilePath = fullfile(ideRootPath, 'libraries', 'Servo', 'src', 'avr');
fileNameToAdd = {'Servo.cpp'};
addSourceFiles(buildInfo, fileNameToAdd, srcFilePath);

サインインしてコメントする。

回答 (1 件)

Manuel Reimer
Manuel Reimer 2020 年 12 月 26 日
See above

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by