このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
カスタム Arduino ライブラリ
R2026aアドオン ライブラリは、Arduino ハードウェアで実行されるカスタム C++ コードとホストコンピューターで実行される MATLAB® コードの間の通信インターフェイスです。
アドオン ライブラリを使用して、arduino 接続オブジェクトの作成時にライブラリを含めることで、エンドユーザーは MATLAB コマンド ラインから直接 Arduino の追加機能にアクセスできるようになります。アドオン ライブラリの例については、Control Motors Using Adafruit Motor Shield V2を参照してください。
MATLAB Support Package for Arduino Hardware には、クラスのフレームワークが用意されており、Arduino デバイスや接続されたハードウェア シールドで使用するカスタム アドオン ライブラリを作成することができます。このサポート パッケージにはアドオン ライブラリの開発に役立つクラスと関数が用意されており、これは総称して Arduino アドオン ソフトウェア開発キット (SDK) と呼ばれます。
開始する前に、Custom Arduino Library Conceptsを参照してください。
独自のアドオン ライブラリを作成する準備ができたら、Create Custom Arduino Libraryの手順に従うか、Create a Custom Arduino Add-On Library をご覧ください。
クラス
matlabshared.addon.LibraryBase | Abstract class for deriving custom Arduino libraries |
関数
トピック
使い方
- Custom Arduino Library Concepts
Understand the components and communication workflow of a custom Arduino library. - Create Custom Arduino Library
Access unsupported hardware and peripherals connected to Arduino boards by creating custom Arduino libraries that enable communication between MATLAB and Arduino hardware.
- Adapt Add-ons to New matlabshared.addon.LibraryBase Class
Learn how to configure your existing add-on class to the new matlabshared.addon.LibraryBase class.
Arduino ハードウェアのリソースとピン配置図
- Custom Arduino Library Resources
Manage hardware resources among custom Arduino libraries. - Physical Terminals and Pin Numbers
Understand the difference between terminal numbers and pin numbers on your Arduino board.
追加情報
- Send Data from Arduino to MATLAB Using Custom Library
Create your first custom Arduino library. - Enable Support for LCD Using Custom Arduino Library
Create a custom Arduino library for LCD support.