Interrupt Routines within Bluetooth

i have an hc05 bluetooth module in which i want to transmit a value in char to the other bluetooth module in order to make a traffic light on the same direction go green and the other to red.but i cannot do it normally because the code does not take my event(which is the button press).i want to make an interept to read serial data if i sent anything to the bluetooth otherwise do the normal traffic light thingy.i have a code please look at it.i don't know what to do.please help me.

recieve_crash.ino (2.69 KB)

trans_crash.ino (473 Bytes)

LINS_THANKACHAN:
i don't know what to do

Three things you might try doing :

  1. Read this first
  2. Post your code in the proper manner. using the </> tags, and
  3. Write your post in a sensibly punctated manner, thereby having something that vaguely resembles English, and perhaps having others more inclined to read it.