setsampletime, setsampletimetemp
This commit is contained in:
@@ -46,9 +46,6 @@ class CommandError(Error):
|
||||
# setcalfactor
|
||||
# usecalfactortemp
|
||||
|
||||
# setsampletime
|
||||
# setsampletimetemp
|
||||
|
||||
# getecal
|
||||
# getecaldate
|
||||
# setecal
|
||||
@@ -354,6 +351,12 @@ class ILT1000(object):
|
||||
def GetAmbientCurrent(self):
|
||||
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):
|
||||
ret = self._SendCommand('getsampletime')
|
||||
return float(ret) / 1000
|
||||
|
||||
Reference in New Issue
Block a user