Short of 1 Interrupt pin - can I fix this by modifying HardwareSerial libary


dear all,

in current project have sorts of sensors hooked 2 arduino's, including le bluetooth module. have serial communication (through wires) between 2 arduino's (i'll call them 'receiving arduino' , 1 'transmitting arduino' referring serial communication).

while working separately, i'm short 1 interrupt pin bluetooth module on 'receiving arduino'. hoping serial communication, when don't connect tx rx pin 'receiving arduino' 'transmitting arduino', tx (on 'receiving arduino' ) become available bluetooth module. more information (tx pin connected ready pin of bt module)

whenever disable serial data (not calling serial1.begin), bluetooth module works, if call serial1.begin, arduino seems occupy tx pin (even though it's not connected), , bluetooth module stops work. (switching between 2 not option, disabling btle lose connection app).

as i'm nearing end of project, getting board more bluetooth pins not possibility.
my question is, if can somehow tell "#define myserial serial1" not occupy tx pin.
i've tried altering hardwareserial library , importing new one, failed (honestly, didn't know doing).

so summarize: can (or preferably knows how this) alter hardwareserial.h/cpp arduino won't occupy tx pin serial communication? it's important know i'm calling serial1 board i'm using, necessary

i think it's possible right? alter doesn't occupy tx pin?
i'm hoping can me out, way fix problem (as it's interrupt capable pin have left, think ;), or can target icsp pins have left if interruptable? have +vcc, gnd, rst left ).

thanks in advance,

crimson

any uno '328p can have pcint on pin.
look pcint, there have been libraries posted make them easy use.


Arduino Forum > Using Arduino > Programming Questions > Short of 1 Interrupt pin - can I fix this by modifying HardwareSerial libary


arduino

Comments