Mercurial > code > home > repos > light9
changeset 89:0459cecf8145
added missing imports and constants to SerialPots
author | drewp |
---|---|
date | Sat, 13 Jul 2002 02:28:45 +0000 |
parents | 238fbd5266ea |
children | d34a4956417a |
files | light8/io.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/light8/io.py Sat Jul 13 02:28:18 2002 +0000 +++ b/light8/io.py Sat Jul 13 02:28:45 2002 +0000 @@ -1,3 +1,4 @@ + class BaseIO: def __init__(self): @@ -76,6 +77,9 @@ # 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