setsampletime, setsampletimetemp
This commit is contained in:
@@ -46,9 +46,6 @@ class CommandError(Error):
|
|||||||
# setcalfactor
|
# setcalfactor
|
||||||
# usecalfactortemp
|
# usecalfactortemp
|
||||||
|
|
||||||
# setsampletime
|
|
||||||
# setsampletimetemp
|
|
||||||
|
|
||||||
# getecal
|
# getecal
|
||||||
# getecaldate
|
# getecaldate
|
||||||
# setecal
|
# setecal
|
||||||
@@ -354,6 +351,12 @@ class ILT1000(object):
|
|||||||
def GetAmbientCurrent(self):
|
def GetAmbientCurrent(self):
|
||||||
return float(self._SendCommand('getambientlevel'))
|
return float(self._SendCommand('getambientlevel'))
|
||||||
|
|
||||||
|
def SetSampleSeconds(self, seconds=0):
|
||||||
|
self._SendCommandOrDie('setsampletime %d' % (seconds * 1000))
|
||||||
|
|
||||||
|
def SetSampleSecondsTemp(self, seconds=0):
|
||||||
|
self._SendCommandOrDie('setsampletimetemp %d' % (seconds * 1000))
|
||||||
|
|
||||||
def GetSampleSeconds(self):
|
def GetSampleSeconds(self):
|
||||||
ret = self._SendCommand('getsampletime')
|
ret = self._SendCommand('getsampletime')
|
||||||
return float(ret) / 1000
|
return float(ret) / 1000
|
||||||
|
|||||||
Reference in New Issue
Block a user