In what I linked, there is a piece of code that, I think, sets DTR high, and one to set it low.
To control the brightness of your LED, just change the time how long DTR is high or low. (If I am right, which I hardly ever am, the longer DTR is zero, the brighter the LED.
Think of it like this: when the LED is continuously fed with 3.3V, then is emits light at maximum brightness.
When it is fed 3.3V for half a second, and 0V for half a second, it has emitted only half the amount of light during that second.
If you change the voltage very rapid, but at a rate that ensures the LED get 0V half of the time and 3.3V the other half of the time, the LED appears to give light at half brightness.
If you change the time the LED gets 0V to be longer, the LED will appear dimmer, if you change the time the LED get 3.3V to be longer, the LED will appear brighter.
Nobody will write the code for you. You will have to do that yourself. No matter in what forum you post (general, newbie, ...) That is the only way you will learn how to do it. And the only way we can be sure you won't stay a newbie forever.
EDIT: please choose one tread in which you ask us to help solve your problems. Please stop opening new treads about this issue. Please post back when you make progress, any kind of progress.
We want to help you, but you have to make an effort yourself. If you don't understand, ask more questions, with more detail about what you don't understand.
Perhaps you should post some more details and extra questions in this tread, and use that tread from now on: http://www.linuxquestions.org:80/que...l-port-728161/