getclockfreq

This commit is contained in:
Ian Gulliver
2016-04-08 11:42:37 -07:00
parent b6e6b44f0d
commit 54f601d911
2 changed files with 5 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ LINES = [
('100% percent setting', ilt.Get100PercentVoltage, 'V'),
('Dark mode', lambda: ilt.DARK_NAMES[ilt.GetDarkMode()], ''),
('Irradiance', ilt.GetIrradiance, ''),
('Clock frequency', ilt.GetClockFrequencyHz, 'Hz'),
]

View File

@@ -46,7 +46,6 @@ class Saturated(Error):
# useuserdark
# erasecalfactor
# getcalfactor
# getclockfreq
# getfeedbackres
# setcalfactor
# setclockfreq
@@ -159,3 +158,7 @@ class ILT1000(object):
def GetIrradiance(self):
ret = self._SendCommand('getirradiance')
return float(ret) / 1000
def GetClockFrequencyHz(self):
ret = self._SendCommand('getclockfreq')
return float(ret) / 100