Skip to content

Commit

Permalink
corrected error in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
itdaniher authored and meeg committed Nov 20, 2011
1 parent 3d04597 commit bcdd93e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cee.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def readADC(self):
}

def set(self, chan, v=None, i=None):
"""v is voltage in volts, i is current in amps, x is a tuple of (channel, gain)"""
"""v is voltage in volts, i is current in amps"""
cmd = 0xAA+chan
if v is not None:
dacval = int(round(v/5.0*4095))
Expand All @@ -48,6 +48,7 @@ def set(self, chan, v=None, i=None):
self.dev.ctrl_transfer(0x40|0x80, cmd, 0, MODE_DISABLED, 0)

def setGain(self, ADCChan, gain):
"""ADCChan is a number between 0 and 3 corresponding 'chanMapping' or the on-hardware ADC mappings"""
self.gains[ADCChan] = gain
self.dev.ctrl_transfer(0x40|0x80, 0x65, gainMapping[gain], ADCChan, 0)

Expand Down

0 comments on commit bcdd93e

Please sign in to comment.