Leonardo, combining scripts.

Oh, sure I have a dozen of them sitting around. Not!

That was a hint for you to post a link.

void Read_Blinker(const unsigned int value)
{
  if (value == 1)
  {
        digitalWrite(24,HIGH);
  }
  else
  {
        digitalWrite(24,LOW);
  }
}

You have a really funny definition of Read. I suppose the function to get input is called Write_something().