Arduino Led (something like push button)

Hy, I need a code for arduino led. When it receive a '1' (example) over bluetooth to turn pin 12 on for 1 second and then turn it off (like push button).

See this:-
http://forum.arduino.cc/index.php?topic=498033.0