コード例 #1
0
ファイル: adc_diff_t25.py プロジェクト: BBBSnowball/simulavr
 def setUp(self):
   SimTestCase.setUp(self)
   # create analog pin as injector and connect to ADC2
   self.a2pin = pysimulavr.Pin(1.5) # set to 1.5V level
   self.__net1 = pysimulavr.Net()
   self.__net1.Add(self.a2pin)
   self.__net1.Add(self.dev.GetPin("B4")) # connect to ADC2
   # create analog pin as injector and connect to ADC3
   self.a3pin = pysimulavr.Pin(1.0) # set to 1V level
   self.__net2 = pysimulavr.Net()
   self.__net2.Add(self.a3pin)
   self.__net2.Add(self.dev.GetPin("B3")) # connect to ADC3
コード例 #2
0
 def setUp(self):
     SimTestCase.setUp(self)
     # create analog pin as injector and connect to ADC2
     self.a2pin = pysimulavr.Pin(1.5)  # set to 1.5V level
     self.__net1 = pysimulavr.Net()
     self.__net1.Add(self.a2pin)
     self.__net1.Add(self.dev.GetPin("B4"))  # connect to ADC2
     # create analog pin as injector and connect to ADC3
     self.a3pin = pysimulavr.Pin(1.0)  # set to 1V level
     self.__net2 = pysimulavr.Net()
     self.__net2.Add(self.a3pin)
     self.__net2.Add(self.dev.GetPin("B3"))  # connect to ADC3
コード例 #3
0
ファイル: adc_diff_t25.py プロジェクト: BBBSnowball/simulavr
 def tearDown(self):
   del self.__net2
   del self.a3pin
   del self.__net1
   del self.a2pin
   SimTestCase.tearDown(self)
コード例 #4
0
 def tearDown(self):
     del self.__net2
     del self.a3pin
     del self.__net1
     del self.a2pin
     SimTestCase.tearDown(self)