led doesn't turn off!

legacynl:
i just read that pin 13 has an 1k resistor. So will you help me if i connect it to that pin?

The on-board led wired to pin 13 does have a series on-baord 1k resistor, however that does not protect the shield connector pin 13. So any output pin wired to a shield connector requires a series current limiting resistor if driving LEDs.

Lefty