Skip to content

Instantly share code, notes, and snippets.

View Evidlo's full-sized avatar
💭
what does this field do?

Evan Widloski Evidlo

💭
what does this field do?
  • Electrical Engineering @ University of Illinois Urbana-Champaign
  • University of Illinois Urbana-Champaign
View GitHub Profile
from twisted.logger import Logger
from twisted.internet.defer import inlineCallbacks
from autobahn.twisted.wamp import ApplicationRunner
from autobahn.twisted.wamp import ApplicationSession
import time
class RobotSession(ApplicationSession):
log = Logger()
#/bin/env python3
## Evan Widloski - 2017-01-06
## Asynchronous magstripe reader example
## Requires root and >= python 3.5
# Much taken from: http://python-evdev.readthedocs.io/en/latest/tutorial.html#reading-events-from-multiple-devices-using-asyncio
import asyncio, evdev, json, os
# MSR100 reader vendor/product ids
#/bin/env python3
## Evan Widloski - 2017-01-06
## Asynchronous magstripe reader example
## Requires root and >= python 3.5
# Much taken from: http://python-evdev.readthedocs.io/en/latest/tutorial.html#reading-events-from-multiple-devices-using-asyncio
import asyncio, evdev
# MSR100 reader vendor/product ids