#include "binary.h"
typedef unsigned char byte;  

char * binary_value_display(byte sensorValue){
  /* byte tmp = 0; */ /* temporary variable to store bitshifted byte */
  byte i;  
  byte bin_val[8];
  for ( i = 7; i >= 0; i--)
    {
      bin_val[i] = sensorValue >> i;  /* starts with bit7, shifting it to position 0.  */

      /* if (tmp & 1)  /\* performs a bitwise AND operation on bit 0. *\/ */
      /*   { */
      /*     digitalWrite((i + 2), HIGH);  /\* if a 1 in position 0 is TRUE, writes HIGH to the led representing bit 7, in this case pin 9. *\/ */
      /*   } */
      /* else */
      /*   { */
      /*     digitalWrite((i + 2), LOW); */
      /*   } */
      
      return bin_val; 
    }
}
