How to use software serial library just in one board and one port?

Hi, i need the arduino to communicate to both the processing sketch and also the IR receiver using the IR remote library(which uses the serial too), so i think i need to use the software serial library.

But i didnt figure out how to use that library. I used the serial for p5, and the mySerial for the receiver. P5 works fine but the receiver didn't, the serial monitor seems to be occupied by the serial only. To make it simple, i stop using the IR, and use a LED instead. LED as the output, a button as the input, when button is pressed, LED lights up. But it didn't light up.

I noticed that software serial use pin 10 as RT, and pin 11 as XT, so i then connect the button to pin 10 and the LED to pin 11. This time, the LED lights up no matter what. What's going on?

Anyway, how to use software serial just in one board and one port?? Thanks.

You will need to post a copy of your full sketch. A drawing of your wiring connections would also help.

I can't figure out what you want to do.

What do you means by this

I used the serial for p5, and the mySerial for the receiver. P5 works fine but the receiver didn't,

And why are you thinking of connecting a button to the serial receive pin?

...R

Also what do you mean by "port" - there is a very specific meaning of port in the microcontroller used in the Arduino, but I suspect you are not refering to that kind of port.

Alright, i have to admitted that i am very unclear about what serial and port means. Sorry about that.

my p5 sketch is doing when the mousePressed, the led lights up. I am doing hand shake with the arduino.

With the software serial library, a second serial is somewhat created, so i use this serial for the IR receiver.

The IR library i use is this: https://github.com/shirriff/Arduino-IRremote. i felt weird when seeing its example always with the Serial.begin() function. Inside its library documents IRremote.cpp, i found many Serial.print() in it. So i think it's using the serial too.

My question is, how to use software serial library for the receiver?

Please re-read the first line of Reply #1.

...R