Skip to content

Instantly share code, notes, and snippets.

@csmatt
csmatt / rcvFromUnifiedRemote.py
Created December 31, 2012 20:01
Simple Python script to be called from Unified Remote with a particular remote code name as an extra named Args. The script receives the remote code name (string), looks the name up in the 'codes' dict to determine the binary data to send, and finally sends the binary data to the Arduino over USB.
#!python.exe
'''This script receives the remote code name (string), looks the name up in the 'codes' dict to determine the binary data to send, and finally sends the binary data to the Arduino over USB.'''
import site
import d2xx as usb
import struct
import binascii
import time
import sys
import re