Esempio n. 1
0
 def switch_all_on(self):
     if pimote.switch('all-on'):
         self.state[1] = True
         self.state[2] = True
         self.state[3] = True
         self.state[4] = True
Esempio n. 2
0
 def switch_all_off(self):
     if pimote.switch('all-off'):
         self.state[1] = False
         self.state[2] = False
         self.state[3] = False
         self.state[4] = False
Esempio n. 3
0
 def switch_4_on(self):
     if pimote.switch('4-on'):
         self.state[4] = True
Esempio n. 4
0
 def switch_4_off(self):
     if pimote.switch('4-off'):
         self.state[4] = False
Esempio n. 5
0
 def switch_3_on(self):
     if pimote.switch('3-on'):
         self.state[3] = True
Esempio n. 6
0
 def switch_3_off(self):
     if pimote.switch('3-off'):
         self.state[3] = False
Esempio n. 7
0
 def switch_2_off(self):
     if pimote.switch('2-off'):
         self.state[2] = False
Esempio n. 8
0
 def switch_2_on(self):
     if pimote.switch('2-on'):
         self.state[2] = True
Esempio n. 9
0
 def switch_1_off(self):
     if pimote.switch('1-off'):
         self.state[1] = False
Esempio n. 10
0
 def switch_1_on(self):
     if pimote.switch('1-on'):
         self.state[1] = True
Esempio n. 11
0
 def start(self):
     pimote.init()
     pimote.switch('all-off')
     if self.scheduler:
         self.scheduler.start()