Go to advanced search

by paulstaf
Mon Aug 13, 2012 4:07 pm
Forum: Python
Topic: RPi.GPIO Wiegand capture speed?
Replies: 68
Views: 31182

Re: RPi.GPIO Wiegand capture speed?

Here is my circuit: http://www.staffordnet.net/HID_Reader.jpg I am using this code: #!/usr/bin/env python import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(21, GPIO.IN) #data 0 GPIO.setup(22, GPIO.IN) #data 1 x = 1 bit = 0 d0 = 0 d1 = 0 def main(): global bit global x global d0 global d1 whi...

Go to advanced search