The circuit schematic is too far away, but let me guess :
The capacitor is in parallel with the LED.
The switch is in parallel with the LED.
The resistor is not used.
The circuit schematic is too far away, but let me guess :
The capacitor is in parallel with the LED.
The switch is in parallel with the LED.
The resistor is not used.