Pi/i2c/string.py

12 lines
148 B
Python
Executable File

#!/usr/bin/env python
import sys
import smbus
bus = smbus.SMBus(1)
address = 0x23
for c in sys.argv[1]:
bus.write_byte(address, ord(c))