Example #1
0
def main():
    # create the tasking queue
    sequence_queue = JoinableQueue()
    
    # get all the GPIO stuff done and create the engine
    gpio = get_gpio()
    settings = get_settings()
    light_strip = rgb_strip(gpio['led_pins'], gpio['led_frequency'])
    engine = color_fade_engine(light_strip)
    
    color_mgr = color_sequence_manager(sequence_queue, engine)
    
    #firstRequest = color_sequence_request("START", sequence)
    color_mgr.start()
    
    asbmgr = asb_manager(sequence_queue)
    asbmgr.start()
    
    print("[Martinique]: Running...")
Example #2
0
def main():
    # create the tasking queue
    sequence_queue = JoinableQueue()
    
    # get all the GPIO stuff done and create the engine
    gpio = get_gpio()
    settings = get_settings()
    sequence = get_default_sequence(settings)
    rgb_strip = mock_rgb_strip(gpio['led_pins'], gpio['led_frequency'])
    engine = color_fade_engine(rgb_strip)
    
    mgr = color_sequence_manager(sequence_queue, engine)
    
    #firstRequest = color_sequence_request("START", sequence)
    mgr.start()
    
    marti = asb_manager(sequence_queue)
    marti.start()
    
    print("[Martinique_POC]: Running...")