changeset 76:4455a7e86643

added a note about the funny read order
author drewp
date Fri, 12 Jul 2002 10:00:10 +0000
parents 0b86bf6808f8
children 5649f5d9c798
files light8/serport.i
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/light8/serport.i	Fri Jul 12 09:55:52 2002 +0000
+++ b/light8/serport.i	Fri Jul 12 10:00:10 2002 +0000
@@ -34,6 +34,10 @@
     #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)