PyDMXControl.profiles.Lixada._LED_Mini_Par   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 18
dl 0
loc 29
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A LED_Mini_Par.__init__() 0 16 1
1
"""
2
 *  PyDMXControl: A Python 3 module to control DMX using OpenDMX or uDMX.
3
 *                Featuring fixture profiles, built-in effects and a web control panel.
4
 *  <https://github.com/MattIPv4/PyDMXControl/>
5
 *  Copyright (C) 2018 Matt Cowley (MattIPv4) ([email protected])
6
"""
7
8
from ..defaults import Fixture
9
10
11
class LED_Mini_Par(Fixture):
12
13
    def __init__(self, *args, **kwargs):
14
        super().__init__(*args, **kwargs)
15
16
        self._register_channel('dimmer')
17
        self._register_channel_aliases('dimmer', 'dim', 'd')
18
        self._register_channel('strobe')
19
        self._register_channel('function')
20
        self._register_channel('speed')
21
        self._register_channel('red')
22
        self._register_channel_aliases('red', 'r')
23
        self._register_channel('green')
24
        self._register_channel_aliases('green', 'g')
25
        self._register_channel('blue')
26
        self._register_channel_aliases('blue', 'b')
27
        self._register_channel('white')
28
        self._register_channel_aliases('white', 'w')
29