My code that I am questioning verified in the Arduino IDE just fine, but I would like a second opinion as to what I am doing. I declared my TX pin in the serial.begin statement of my code, and I also use the TX pin as an input. Is this going to work or just totally flop? I am using the RFduino to read the RPM from a motor and also "program" it to run a different speed by sending a reference byte. The way the system is set up is that there is one data line between RFduino and motor. This line has a signal to be translated to rpm on it when the motor is not being "programmed" ie, the motors micro-controller is not interrupted. So the code is using digitalRead(TXpin) when reading the rpm from the motor, and using Serial.write((byte)) when sending the reference byte to the motor.
Thank you for any input