This will work most of the time. It depends on the power supply voltage
>and LED forward voltage drop:
>
> View in a fixed-width font such as Courier.
>
> .
> .
> . /
> . Vcc>----+----o o----+--->
> . | SW | SW closed
> . [R1] |
> . | | V -V
> . | | F EB
> . + - - ------ | *
> . V V D1 V D2 R1 \\ *
> . F - - |\\ *
> . - | | | \\ *
> . | | | \\ *
> . >| | | \\ *
> . |---------+ I ^ | \\ *
> . /| | d | | \\ *
> . | [R2] | \\ *
> . | | +*-*-*-*+*----+--
> . | | V -V V
> . --- --- F EB F
> . V ->
> . d
> .
> .
> .