Skip to content
Push USB Panic Button, receive ???
Python Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
vendor/gems/bundler-1.1.0
.gitignore
Gemfile
LICENSE.md add mit license Apr 1, 2015
README.md
Rakefile
app.rb
config.sample.json
panicbutton.py

README.md

USB Panic Button

I got given a USB Panic Button for christmas a few years ago. I'm trying to make it do things on Mac OSX with Python.

Shout Outs

Shamelessly learned what calls to make from Ken Shirriff's experiences on Linux who also copied some magic number knowledges from Benjamin Kendinibilir's adventures in Perl.

morland provided moral support and Python tips.

What I done to make it run

I used libusb but it's possible that OpenUSB would work too. For convenience, I used homebrew.

brew install libusb

I installed Python 2.7.2 through virtualenv. Then, I got the PyUSB module. Version 1.0.0a2 to be precise.

pip install pyusb

Run the script

python panicbutton.py

We need to go deeper

If you really want to understand what's going on in USB land, I gained some insight from USB in a NutShell.

Something went wrong with that request. Please try again.