12/27/2023 0 Comments Raspberry pi start 60 minute timer![]() Make /etc/init.d/pwrd executable: sudo chmod 755 /etc/init.d/pwrd Ser = serial.Serial('/dev/ttyACM0', 9600)Ĭreate a /etc/init.d/pwrd to launch on start upĮcho "Usage: /home/pi/pwrd/pwrd.py " The Arduino sketch (available at the top of this page) basically has one line when the encoder button is pressed: Serial.println("shutdown") Ī simple python daemon /home/pi/pwrd/pwrd.py import serial
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |