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!