# HG changeset patch # User drewp # Date 2002-07-13 02:28:45 # Node ID 0459cecf8145fddf9644462cf7711f01fe3edb6e # Parent 238fbd5266eaae23bfda753f371c21c295d0eb46 added missing imports and constants to SerialPots diff --git a/light8/io.py b/light8/io.py --- a/light8/io.py +++ b/light8/io.py @@ -1,3 +1,4 @@ + class BaseIO: def __init__(self): @@ -76,6 +77,9 @@ class SerialPots(BaseIO): # this is for a chip with A0,A1,A2 lines all low: port = 72 + from fcntl import * + + I2C_SLAVE = 0x0703 #/* Change slave address */ ioctl(self.f,I2C_SLAVE,port) self.dummy=0