Ejemplo n.º 1
0
 def OnSpot(self, level):
   # level is -1 for Spot button Off; else the Spot level 0 to 1000.
   ret = BaseHardware.OnSpot(self, level)
   if level >= 0 and not self.usingSpot:		# Spot was turned on
     byte = self.GetControlByte(0, 2)
     byte |= 0b10000000
     self.SetControlByte(0, 2, byte)
     self.usingSpot = True
   elif level < 0 and self.usingSpot:			# Spot was turned off
     byte = self.GetControlByte(0, 2)
     byte &= 0b01111111
     self.SetControlByte(0, 2, byte)
     self.usingSpot = False
   return ret
Ejemplo n.º 2
0
 def OnSpot(self, level):
     # level is -1 for Spot button Off; else the Spot level 0 to 1000.
     self.anttuner.OnSpot(level)
     return BaseHw.OnSpot(self, level)