 {  
   pinMode(led_pin, OUTPUT);
   pinMode(input_pin, INPUT);
-  digitalWrite(input_pin, LOW);
 }
 
 void loop() 

    input_val = 0;
  else if(input_val > 1023)
    input_val = 1023;*/
         
  analogWrite(led_pin, gamma[(int)(input_val/4)]);
}



#include <SignalProcessing.h>

const uint8_t PROGMEM gamma[] = {
    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,
    0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  0,  1,  1,  1,  1,
    1,  1,  1,  1,  1,  1,  1,  1,  1,  2,  2,  2,  2,  2,  2,  2,
