This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
Pi/i2c/string.py

12 lines
148 B
Python
Raw Normal View History

2016-01-25 21:51:45 +00:00
#!/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))