ArduinoでLEDが点灯できません。関数writedigitalPinが未定義ですと出てしまいます。
Afficher commentaires plus anciens
MatlabをArduinoをusbで接続してLEDを点灯させようとしています。接続はLedと抵抗のみです。
コードは以下です。
clear a
a = arduino();
writeDigitalPin(a, 'D11', 0);
pause(2);
writeDigitalPin(a, 'D11', 1);
結果は題の通り関数が未定義です。と表示されます。
仕様はMatlab2019aのトライアルバージョンです。
Réponse acceptée
Plus de réponses (4)
Yoshio
le 8 Sep 2019
0 votes
MATLAB® Support Package for Arduino® Hardwareのインストールはされましたか?
こちらを参考にお試しください。
Shinsuke Okayasu
le 8 Sep 2019
0 votes
2 commentaires
Yoshio
le 8 Sep 2019
何かがおかしいですね。
インストール後、こちらは実行されましたでしょうか。
Shinsuke Okayasu
le 8 Sep 2019
Shinsuke Okayasu
le 8 Sep 2019
0 votes
Catégories
En savoir plus sur Arduino Hardware dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!