arduino code bluetooth modules

I am trying to do use two bluetooth modules to control an LEDs.  I am using HC05 as master and another as slave.  I can get the two bluetooth module to pair up and communicate with one another using a serial communication in the Arduino IDE.  Now what I want to do is to use a push pins to turn on and off an LEDs.  Here is my set up for the loop and void set up.  I attached also the code that I am using for the bluetooth.  

=============================================================

void loop() 

{

  if(digitalRead(left_arrow_pin) == HIGH)

  {

    // seems like left arrow button was pressed 

    // so we clear all the pixels first

    clear_all_pixels();

    

    // and then we show the left arrow

    left_arrow();

  }

  else if(digitalRead(right_arrow_pin) == HIGH)

  {

    // seems like right arrow button was pressed 

    // so we clear all the pixels first

    clear_all_pixels();

    

    // and then we show the right arrow

    right_arrow();

  }

  

  else if(digitalRead(stop_sign_pin) == HIGH)

  {

    // seems like stop sign button was pressed 

    // so we clear all the pixels first

    clear_all_pixels();

    

    // and then we show the stop sign

    stop_sign();

  }

 }

====================================================================

void setup() 

{

  //setting the button pins we defined above as inputs

  pinMode(left_arrow_pin, INPUT);

  pinMode(right_arrow_pin, INPUT);

  pinMode(stop_sign_pin, INPUT);

  

  //initializing the led strip

  strip.begin();

  strip.show();

 

}

 

 

 
Looking for solution of this Assignment?

WHY CHOOSE US?

We deliver quality original papers

Our experts write quality original papers using academic databases.  

Free revisions

We offer our clients multiple free revisions just to ensure you get what you want.

Discounted prices

All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount

100% originality

We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity

On-time delivery

We will deliver your paper on time even on short notice or  short deadline, overnight essay or even an urgent essay