Raspberry safe shutdown button
5 ビュー (過去 30 日間)
古いコメントを表示
I am trying to add a shutdown button to my RPi. I have found some ways using a python script but I dont know how to implement it with matalb hardware... Any help? Thanks!
0 件のコメント
回答 (1 件)
Urmila Rajpurohith
2021 年 2 月 26 日
Hi
Eexecuting the below commands form MATLAB command window will solve the issue:
h = raspberrypi
h.execute('sudo shutdown -h now')
For more information refer to the below documentation link:
Hope this helps!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で MATLAB Support Package for Raspberry Pi Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!