Skip to content

Instantly share code, notes, and snippets.

View bgunebakan's full-sized avatar

Bilal Tonga bgunebakan

View GitHub Profile
@bgunebakan
bgunebakan / wiegand.c
Last active August 29, 2015 14:12 — forked from hsiboy/wiegand.c
/*
* Wiegand API Raspberry Pi
* By Kyle Mallory All rights reserved.
* 12/01/2013
* Based on previous code by Daniel Smith (www.pagemac.com) and Ben Kent (www.pidoorman.com)
* Depends on the wiringPi library by Gordon Henterson: https://projects.drogon.net/raspberry-pi/wiringpi/
*
* This is linked with -lpthread -lwiringPi -lrt
*
* The Wiegand interface has two data lines, DATA0 and DATA1. These lines are normall held