Mercurial > code > home > repos > light9
diff light8/serport.i @ 75:0b86bf6808f8
new serial port module to read the PCF8591 chip with the sliders on it
author | drewp |
---|---|
date | Fri, 12 Jul 2002 09:55:52 +0000 |
parents | 45b12307c695 |
children | 4455a7e86643 |
line wrap: on
line diff
--- a/light8/serport.i Thu Jul 11 15:54:24 2002 +0000 +++ b/light8/serport.i Fri Jul 12 09:55:52 2002 +0000 @@ -34,10 +34,6 @@ #define CHAN_TO_TUPLE_POS(chan,idx) i2c_smbus_write_byte(file, chan);\ PyTuple_SetItem(t,idx,PyInt_FromLong(i2c_smbus_read_byte(file))); - /* - these are shuffled here to match the way the pots read in. in - the returned tuple, 0=left pot..3=right pot. - */ CHAN_TO_TUPLE_POS(1,0) CHAN_TO_TUPLE_POS(2,1) CHAN_TO_TUPLE_POS(3,2)