Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

Nanomesher PiSwitch Shutdown Detect Script

This is the Shutdown Detection script used by Hackable Raspberry Pi Switch

Description

This python script monitors GPIO pin 7 (GPIO04). The pin needs to be setup as pull down. If the pin goes high and remain high for more than 250ms. It will triggers the linux operating system to shutdown

This script is intended to be used by Raspberry Pi but can be easily modified to suit other variances.

Prerequisties

  • Python 2.x or Python 3.x
  • Python GPIO library
sudo apt-get install python-dev python-rpi.gpio

About

Shutdown script used by Nanomesher Hackable Pi Switch

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.