setsampletime, setsampletimetemp

This commit is contained in:
Ian Gulliver
2016-04-23 15:48:26 -07:00
parent eb5ee63328
commit d03a5e695f

View File

@@ -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