Hi all,
I have a problem: I am trying to control a Spotlight via a DMX Shield and control some RF- Power Outlets at the same time.
There are two different protocols I am controlling the power outlets with. Unfortunately when I am using the DMXMaster Library the power outlet controlled with the binary code does not work anymore.
Does anyone has an idea what might cause the problem?
Thanks in advance!
Here is my code:
#include <DmxMaster.h>
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
RCSwitch mySwitch2 = RCSwitch();
void setup() {
//Serial.begin(9600);
// Transmitter is connected to Arduino Pin #10
mySwitch.enableTransmit(10);
mySwitch2.enableTransmit(10);
// mySwitch.setPulseLength(360);
DmxMaster.usePin(3);
DmxMaster.maxChannel(1);
}
void loop() {
mySwitch2.send(“000000000000000000010100”);
delay(1000);
mySwitch.switchOn(‘b’, 2);
DmxMaster.write(1, 255);
delay(12000);
mySwitch.switchOff(‘b’, 2);
DmxMaster.write(1, 0);
delay(1000);
mySwitch2.send(“000000000000000000010101”);
delay(60000);
}