Mirco-Bit code Help

can someone Help me write code,
What Needs to happen (Underneath)

When A File named “InsertFileHere.png” is playing in pin 1, Pin 0 will make lights, light up

Yes i already got this wired so please just help me with the code, a
and the code will need to be made in Java Script