コード例 #1
0
  def __init__(self, is_momentary, 
      msg_type, 
      channel, 
      identifier, 
      on_color = GREEN,
      off_color = RED, 
      blink_on = False,
      blink_colors = [YELLOW]):

    FlashingButtonElement.__init__(self, is_momentary, msg_type, channel, identifier, 
        blink_on = blink_on, 
        blink_colors = blink_colors)

    self.on_color = on_color
    self.off_color = off_color
コード例 #2
0
  def __init__(self, 
      is_momentary,
      msg_type,
      channel,
      identifier,
      off_color = 0,
      on_color = 127,
      blink_on = False,
      blink_colors = [RED],
      color_mappings = None,
      **kwargs):

    FlashingButtonElement.__init__(self, is_momentary, msg_type, channel, identifier, 
        blink_on = blink_on, 
        blink_colors = blink_colors)
    
    self.setup_color_mappings(color_mappings)