PIN 13 is the BLUE LED.
Working code, about time, Mark.
5 hours to get a blue led working.
I must be an IDIOT.
Now to find the RGB LED?
Code : working is
"int led = 13;//LED_RED; // the PWM pin the LED is attached to
int brightness = 0; // how bright the LED is
int fadeAmount = 5; // how many points to fade the LED by
// the setup routine runs once when you press reset:
void setup() {
// declare pin 9 to be an output:
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
// set the brightness of pin 9 WRONG INFO DEV TEAM
analogWrite(led, brightness);
// change the brightness for next time through the loop:
brightness = brightness + fadeAmount;
// reverse the direction of the fading at the ends of the fade:
if (brightness == 0 || brightness == 255) {
fadeAmount = -fadeAmount ;
}
// wait for 30 milliseconds to see the dimming effect
delay(30);
}
"
Anyone have the RGB working?
******* UPDATE *******
FIXED code with one line missing from guide all examples.
“#include < Arduino.h >”
int led = LED_RED; now works.
missing, please remove space after < and before > as this user-space formats the code and removes the file name. It is an issue with these plugins on forum. being too smart for their own good. lol
LOL guys missing a simple include with your examples.shown.
Please test before publishing your examples, 5 hours wasted today with this setup guide of yours.
Upset with quality control.
I must lower my standards as I expect better from folk.
Mark