This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smbus | |
import sys | |
import time | |
from ctypes import c_short | |
from ctypes import c_byte | |
from ctypes import c_ubyte | |
if len(sys.argv) == 2: | |
DEVICE = int(sys.argv[1],16) | |
else: |