Self-flashing LEDs