Raspberry safe shutdown button

7 visualizaciones (últimos 30 días)
Josef Walek
Josef Walek el 23 de Feb. de 2021
Respondida: Urmila Rajpurohith el 26 de Feb. de 2021
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!

Respuestas (1)

Urmila Rajpurohith
Urmila Rajpurohith el 26 de Feb. de 2021
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!

Categorías

Más información sobre MATLAB Support Package for Raspberry Pi Hardware en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by