コード例 #1
0
 def configure(self, config):
     ARMNode.configure(self, config)
コード例 #2
0
 def configure(self, config):
     ARMNode.configure(self, config)
     set_attribute(self, 'mode', 'volts', config, str)
     set_attribute(self, 'ttl', 10.0, config, int)
コード例 #3
0
ファイル: ao.py プロジェクト: mcruse/monotone
 def configure(self, cd):
     ARMNode.configure(self, cd)
     if self.id < 1 or self.id > 3:
         self.id = None
         raise EInvalidValue('AO channel must be between 1 and 3.  %d is invalid' % self.id)
コード例 #4
0
ファイル: ai.py プロジェクト: mcruse/monotone
 def configure(self, config):
     ARMNode.configure(self, config)
     set_attribute(self, 'mode', 'volts', config, str)
     set_attribute(self, 'ttl', 10.0, config, int)
コード例 #5
0
ファイル: canbus.py プロジェクト: mcruse/monotone
 def configure(self,config):
     ARMNode.configure(self,config)
コード例 #6
0
 def configure(self, cd):
     ARMNode.configure(self, cd)
     if self.id < 1 or self.id > 3:
         self.id = None
         raise EInvalidValue(
             'AO channel must be between 1 and 3.  %d is invalid' % self.id)