1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Simulink ライブラリ M5StackLCDlib のインストール

Last updated at Posted at 2025-12-22

元記事はコチラ


LCD 表示用の Simulink ライブラリ

をインストールします.MATLAB R2023a 以降のバージョンに対応しています.

image.png

Download ZIP を選択すると,

  • M5StackLCD_Simulink-main.zip

がダウンロードされるので,解凍(展開)してできるフォルダ M5StackLCD_Simulink-main(のなかのフォルダ M5StackLCD_Simulink-main)を

  • C:\Users\ユーザ名\Documents\MATLAB

にコピペしてください.そして,M ファイル

startup.m
% startup.m

addpath('C:\Users\ユーザ名\Documents\MATLAB\M5StackLCD_Simulink-main')

をフォルダ

  • $\tt\mbox{C:\Users\ユーザ名\Documents\MATLAB}$

に保存してください.つまり,

  • $\tt\mbox{C:\Users\ユーザ名\Documents\MATLAB\startup.m}$

としてください.そして,MATLAB を再起動すると,Simulink ライブラリ M5StackLCDlib が使用できるようになります.コマンドウィンドウで

>> M5StackLCDlib

と入力すると,Simulink ライブラリ M5StackLCDlib が開きます.

image.png

サンプルファイルは,

  • $\tt\mbox{M5StackTable_Example_23a.slx}$
  • $\tt\mbox{M5StackXYGraphDisplay_Example_23a.slx}$

の 2 つが用意されています.COM 番号を

image.png

image.png

のように設定してください.実行した結果はこちら.

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?