示例#1
0
 def all_off(self):
     RELAY.relayALL(self.address, 0)
示例#2
0
 def all_on(self):
     #Bit 0 is relay 1, bit 1 is relay 2, and so on. To turn all the  relays on at once, use the number 127 for the value.
     RELAY.relayALL(self.address, 127)