Projet

Général

Profil

Enzo Di Sotto » bouton.py

Enzo Di Sotto, 20/11/2023 18:51

 
from gpiozero import Button
import shutil
import os
button = Button(21)

while True:
if button.is_pressed:
os.system('sh /home/user1/Desktop/rename_log.sh')
(38-38/47)