asr_vosk: Allow to handle keyword and command in one sentence
[ros_wild_thumper.git] / scripts / i2c.py
1 #!/usr/bin/env python
2 # -*- coding: iso-8859-15 -*-
3
4 from pyshared.i2c import *
5
6 if __name__ == "__main__":
7         import struct
8         import sys
9
10         dev = i2c(0x50)
11         s = struct.pack(">Bh", int(sys.argv[1]), int(sys.argv[2]))
12         dev.write(s)
13         dev.close()