Look in playground "LED Lights and Displays":http://arduino.cc/playground/Main/InterfacingWithHardware#Output
Assuming you have a common anode RGB LED.Wire up like it is shown here.Then use Code: [Select]analogWrite(9,redValue);analogWrite(10,greenValue);analogWrite(11,blueValue);Where redValue, greenValue, blueValue, are all variables with the values between 0 and 255.Note a value of 0 will be full bright and a value of 255 will be off and a value of 128 will be half way bright.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16