Hard Wire to RGB led controller

OK, I've been reading post from here and Reddit and have kind of stuck in a ditch. I'm trying to Connect Arduino to the IR receiver input. I've printed out this post Bypassing IR control on HDMI switcher - Project Guidance - Arduino Forum and read it over and over and cant figure out where the Hex code is suppose to go.

Me2. I can read your contribution over and over again and cannot find out what you want to accomplish :frowning:

Please elaborate what you have and what you want. Did you run the IRremote examples?

Yes i did run "IRsendRawDemo, IRsendDemo, and IRrecvDump". But the code i need to figure out is what "wystem" (from the Forum in the link i listed above) some how he got it to work. Since he is a Guest and the posts are almost 5 years ago i can't inbox him for questions. I'm attaching the *.ino. I'm just needing help understanding where the decoded NEC HEX code from the Remote would go inside this program to be sent to the receiver Hard Wired. No IR-LED nor IR Receiver.

HardwireIR.ino (1.42 KB)

Please include your sketch in Code Tags </>, see sticky topics on top of the forum.

Why don't you use Serial for wire transmission?
Which RGB controller, what kind of input does it expect?

// pulse parameters in usec
#define HDR_MARK  9000
#define HDR_SPACE 4500
#define BIT_MARK  560
#define ONE_SPACE 1690
#define ZERO_SPACE  560

#define TOPBIT 0x80000000

const int OutputPin = 11;

void send() {
  Serial.println("Sending");
  mark(HDR_MARK);
  space(HDR_SPACE);

 
  for (int i = 0; i < 7; i++) {
      mark(BIT_MARK);
      space(ZERO_SPACE);
  }
  for (int i = 0; i < 8; i++) {
      mark(BIT_MARK);
      space(ONE_SPACE);
  }
  for (int i = 0; i < 1; i++) {
      mark(BIT_MARK);
      space(ZERO_SPACE);
  }
  for (int i = 0; i < 5; i++) {
      mark(BIT_MARK);
      space(ONE_SPACE);
  }
   for (int i = 0; i < 8; i++) {
      mark(BIT_MARK);
      space(ZERO_SPACE);
  }
  for (int i = 0; i < 3; i++) {
      mark(BIT_MARK);
      space(ONE_SPACE);
  }
  mark(BIT_MARK);
  space(0);
}

void mark(int time) {
  digitalWrite(OutputPin, LOW);
  delayMicroseconds(time);
}

void space(int time) {
  digitalWrite(OutputPin, HIGH);
  delayMicroseconds(time);
}


void setup() {
  // put your setup code here, to run once:
Serial.begin(9600);
pinMode(OutputPin, OUTPUT);
digitalWrite(OutputPin, HIGH);

 
}

void loop() {
  // put your main code here, to run repeatedly:
  if (Serial.available() > 0) {
    char inChar = Serial.read();
    if(inChar == '!' ){
      //digitalWrite(OutputPin, HIGH);
      send();
      //digitalWrite(OutputPin, LOW);
    }
  }
}

No idea if Serial would work, honestly im still a new. i keep learning new stuff for Arduino everyday and still haven't mastered any of this. i figured serial was a 2-way communication data type and the receiver only has an input.
The controller is a cheap ($5) RGB strip controller from Monster i bought from walmart. I was hoping to use this instead of making my own controller because its so small and pre-made.

Please understand that "a controller from walmart" is not really helpful. Please supply a link to the data sheet, where the communication protocol is described.

Where I live we don't even have Walmarts (or even $) so a description like "a cheap ($5) RGB strip controller from Monster i bought from walmart" isn't lightening my ignorance one little bit.

We really need a datasheet but even a picture and any operating instructions you have might help a bit.

Steve