Skip to content

Commit

Permalink
Removed internal temperature docstring example
Browse files Browse the repository at this point in the history
The getFeedback() method had an example that implied that
reading from AIN30 would give the internal temperature. The
getTemperature() method is the proper way to do that, so
we updated the docstring with an AIN4 example.
  • Loading branch information
LabJackAdmin committed Sep 15, 2010
1 parent 0c43cb5 commit 1c24759
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/u3.py
Expand Up @@ -640,18 +640,18 @@ def getFeedback(self, *commandlist):
Examples:
>>> myU3 = u3.U3()
>>> ledCommand = u3.LED(False)
>>> internalTempCommand = u3.AIN(30, 31, True)
>>> myU3.getFeedback(ledCommand, internalTempCommand)
[None, 23200]
>>> ain0Command = u3.AIN(0, 31, True)
>>> myU3.getFeedback(ledCommand, ain0Command)
[None, 9376]
OR if you like the list version better:
>>> myU3 = U3()
>>> ledCommand = u3.LED(False)
>>> internalTempCommand = u3.AIN(30, 31, True)
>>> commandList = [ ledCommand, internalTempCommand ]
>>> ain0Command = u3.AIN(30, 31, True)
>>> commandList = [ ledCommand, ain0Command ]
>>> myU3.getFeedback(commandList)
[None, 23200]
[None, 9376]
"""

Expand Down

0 comments on commit 1c24759

Please sign in to comment.