Skip to content

About

Shutdown script used by Nanomesher Hackable Pi Switch

Resources

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

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

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages