Arduino nano (328p) low PWM O/P

Just come across a small issue. My project is almost finished, Just adding a warning LED. When the LED lights, it is very dim, Only 2.7V on the O/P pin, With no LED, the voltage is 5v. Ive tried pin 9 & 10, both are the same. Is this a fault with the nano?

Let me guess here... no resistor to go with that LED
Right?

It has a resistor, even tried switching the LED on with a transistor via a 1k, Still the same

Doen't know if this makes any difference, Also running a LCD from the nano

Are you using the output as PWM? Maybe you set it as a 50% duty cycle?

However I believe the problem is in the code. Maybe you're turning on and off the LED to fast simulating a PWM output.

Please post your code

Sounds like pinMode(pinX, OUTPUT); is missing.

CrossRoads:
Sounds like pinMode(pinX, OUTPUT); is missing.

DOH!! Yes, that was it, Cheers.