Skip to content

Instantly share code, notes, and snippets.

View treeherder's full-sized avatar

Brendan Reddy-Best treeherder

View GitHub Profile
@treeherder
treeherder / gpio.c
Last active August 29, 2015 14:17 — forked from ajmontag/gpio.c
/**
* Title: gpio.c
*
* Author: Andrew Montag
* ajmontag@gmail.com
* sites.google.com/site/andrewmontag
*
* Licence: Boost Software Licence - Verison 1.0
* http://www.boost.org/users/license.html
*
#!/usr/bin/python
# based on monitor-bluetooth
# Changes by Domen Puncer <domen@cba.si>
import gobject
import dbus
import dbus.mainloop.glib
import os