2 Potentiometers controlling a single LED

@anon26912280
If you want that the LED should bink only once when button is closed and released, then your sketch requires following modification that involes the resetting of the variable state after one pass. (Current sketch of Post-1 will continuously blink LED and it does when button is closed and released only for once.)

int LED = 2;
int Button = 4;
int timeOn = A3;
int timeOff = A4;

boolean state = false;

void setup() 
{
 pinMode(LED, OUTPUT);
 pinMode(Button, INPUT_PULLUP);
}

void loop() 
{
 int B = digitalRead(Button);
 int onVal = analogRead(timeOn);
 onVal = map(onVal, 0, 1023, 50, 500);
 int offVal = analogRead(timeOff);
 offVal = map(offVal, 0, 1023, 50, 500);

 if (B == LOW) 
 {
   state = ! state; //Button closed change state
   delay(200);
 }
 if (state == true) 
 {
   digitalWrite(LED, HIGH);
   delay(onVal);
   digitalWrite(LED, LOW);
   delay(offVal);
   state = false;
 }
 /*
 if (state == false) 
 {
   digitalWrite(LED, LOW);
 }*/
}