Skip to content

Instantly share code, notes, and snippets.

@daid
Created July 21, 2015 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daid/82d2f523e064af16a642 to your computer and use it in GitHub Desktop.
Save daid/82d2f523e064af16a642 to your computer and use it in GitHub Desktop.
#[hardware]
#device = DMX512SerialDevice
#device = EnttecDMXProDevice
#device = VirtualOutputDevice
#port = COM1
#[hardware]
## Virtual output device, for debugging. Will show up as white squares on the screen.
#device = VirtualOutputDevice
[hardware]
# Arduino Mega 2560 with an ATMega8U2 is idenfied with \Device\USBSER@@@ on windows.
# Use the DMX512SerialDevice which can be used to talk to firmware with the driver from: https://github.com/mathertel/DMXSerial directly without extra hardware.
device = DMX512SerialDevice
port = \Device\USBSER@@@
channels = 32
[channels]
MainCabinLights = 0
WarningLights = 1
[state]
condition = Always
target = MainCabinLights
value = 1.0
[state]
condition = HasShip == 0
target = MainCabinLights
effect = Glow
min_value = 0.0
max_value = 0.5
time = 1.0
[state]
condition = Hull < 50
target = WarningLights
effect = Blink
on_time = 0.05
off_time = 0.05
[state]
condition = HasShip == 0
target = WarningLights
value = 0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment