but with very low brightness
I'm sure that if you declared the LED pin to be an output pin, it would be brighter.