Ejemplo n.º 1
0
from time import sleep

from PyDMXControl import Colors
from PyDMXControl.controllers import uDMXController as Controller
from PyDMXControl.effects.Color import Chase
from PyDMXControl.effects.Intensity import Dim
from PyDMXControl.profiles.funGeneration import LED_Pot_12_RGBW
from PyDMXControl.profiles.Stairville import LED_Par_10mm, LED_Par_36

dmx = Controller()

# Fixtures
dmx.add_fixture(LED_Par_10mm)
dmx.add_fixture(LED_Par_36)
dmx.add_fixture(LED_Par_36)
dmx.add_fixture(LED_Par_36)
dmx.add_fixture(LED_Par_36)
dmx.add_fixture(LED_Pot_12_RGBW)
dmx.add_fixture(LED_Pot_12_RGBW)

# Dim all up
dmx.all_locate()

# Test color chase
Chase.group_apply(
    dmx.get_all_fixtures(),
    1000,
    colors=[Colors.Red, Colors.Yellow, Colors.Green, Colors.Blue])

# Wait then clear
sleep(15)
Ejemplo n.º 2
0
from PyDMXControl.controllers import uDMXController as Controller
from PyDMXControl.profiles.Eyourlife import Small_Flat_Par
from PyDMXControl.profiles.Stairville import LED_Par_10mm, LED_Par_36

dmx = Controller()

# Fixtures
dmx.add_fixture(LED_Par_10mm)
dmx.add_fixture(LED_Par_36)
dmx.add_fixture(LED_Par_36)
dmx.add_fixture(LED_Par_36)
dmx.add_fixture(LED_Par_36)
dmx.add_fixture(Small_Flat_Par)
dmx.add_fixture(Small_Flat_Par)

# Web Debug
dmx.web_control()

# Dim all up
dmx.all_locate()

# Done
dmx.sleep_till_enter()
dmx.close()
Ejemplo n.º 3
0
        self._register_channel('white', vdim=True)
        self._register_channel_aliases('white', 'w')
        self._register_channel('full_dimmer')
        self._register_channel('pan')
        self._register_channel('tilt')
        self._register_channel('pan_fine')
        self._register_channel('tilt_fine')
        self._register_channel('speed')
        self._register_channel('focus')
        self._register_channel('strobe')


dmx = Controller()

# Fixtures
dmx.add_fixture(LED_Zoom_Wash_Moving)

# Dim all up
dmx.all_locate()

# Test color chase
Chase.group_apply(
    dmx.get_all_fixtures(),
    1000,
    colors=[Colors.Red, Colors.Yellow, Colors.Green, Colors.Blue])

# Wait then clear
sleep(10)
dmx.clear_all_effects()
dmx.all_locate()
sleep(5)
Ejemplo n.º 4
0
from PyDMXControl import Colors
from PyDMXControl.controllers import uDMXController as Controller
from PyDMXControl.profiles.Eyourlife import Small_Flat_Par
from PyDMXControl.profiles.Stairville import LED_Par_10mm, LED_Par_36

# This is my home setup, which also acts as a great demo of some of what this library is capable of doing.
# See the tests directory for other recent/new features that I've possibly been working on.

# Create our controller
dmx = Controller()

# Load some fixtures from JSON
dmx.load_json_config('tests/json/home.json')

"""
dmx.add_fixture(LED_Par_10mm, name="Flood")

dmx.add_fixture(LED_Par_36, name="S1 Art Left")
dmx.add_fixture(LED_Par_36, name="S2 Board")
dmx.add_fixture(LED_Par_36, name="S3 Art Right")
dmx.add_fixture(LED_Par_36, name="S4 Books")

dmx.add_fixture(Small_Flat_Par, name="F1 Desk Right")
dmx.add_fixture(Small_Flat_Par, name="F2 Desk Left")
"""

# Define all the methods the callback will use
custom_blue = [0, 16, 255]
custom_white = [255, 140, 70]
Ejemplo n.º 5
0
from datetime import datetime

from PyDMXControl import Colors
from PyDMXControl.controllers import uDMXController as Controller
from PyDMXControl.profiles.Eyourlife import Small_Flat_Par
from PyDMXControl.profiles.Stairville import LED_Par_10mm, LED_Par_36

# This is my home setup, which also acts as a great demo of some of what this library is capable of doing.
# See the tests directory for other recent/new features that I've possibly been working on.

# Create our controller
dmx = Controller()

# Create some fixtures (auto insert at next chan)
dmx.add_fixture(LED_Par_10mm, name="Flood")

dmx.add_fixture(LED_Par_36, name="S1 Art Left")
dmx.add_fixture(LED_Par_36, name="S2 Board")
dmx.add_fixture(LED_Par_36, name="S3 Art Right")
dmx.add_fixture(LED_Par_36, name="S4 Books")

dmx.add_fixture(Small_Flat_Par, name="F1 Desk Right")
dmx.add_fixture(Small_Flat_Par, name="F2 Desk Left")


# Define all the methods the callback will use
def standard_lights():
    dmx.get_fixture(1).set_channels(Colors.Black, 0, 0, 0, 0)

    dmx.get_fixture(2).set_channels(0, Colors.Black, 0, 0)
    dmx.get_fixture(3).set_channels(0, Colors.Black, 0, 0)