Skip to content

Instantly share code, notes, and snippets.

@bmihelac
Created August 30, 2013 12:15
Show Gist options
  • Save bmihelac/6389270 to your computer and use it in GitHub Desktop.
Save bmihelac/6389270 to your computer and use it in GitHub Desktop.
IrToy playing
$ python -m serial.tools.list_ports
/dev/ttyACM0
pip install PyIrToy PySerial
import serial
import irtoy
sd = serial.Serial('/dev/ttyACM1')
toy = irtoy.IrToy(sd)
irCode = toy.receive()
toy.transmit(irCode)
sd.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment