Regis Monte
Member
Hello, I guess it will be a quick question...
I am using RGB Led pfrom pjrc on pins 25,26 and 27. When I digitalWrite(pin, HIGH) on the three of them it comes white which is normal but if I do analogWrite(pin, 255) on each it comes red...
Looks like analogRead() is working but not sure.
Any idea, has it something to do with the MOSI1 stuff ?
Thanks for the help.
I am using RGB Led pfrom pjrc on pins 25,26 and 27. When I digitalWrite(pin, HIGH) on the three of them it comes white which is normal but if I do analogWrite(pin, 255) on each it comes red...
Looks like analogRead() is working but not sure.
Any idea, has it something to do with the MOSI1 stuff ?
Thanks for the help.
C++:
#include <Arduino.h>
// led
const byte ledRPin_ = 25;
const byte ledGPin_ = 26;
const byte ledBPin_ = 27;
void setup()
{
pinMode(ledRPin_, OUTPUT);
pinMode(ledGPin_, OUTPUT);
pinMode(ledBPin_, OUTPUT);
pinMode(13, OUTPUT);
digitalWrite(13, HIGH);
//setLedColor(255,255,255);
//analogWrite(ledRPin_, 255);
//analogWrite(ledGPin_, 255);
//analogWrite(ledBPin_, 255);
digitalWrite(ledRPin_, HIGH);
digitalWrite(ledGPin_, HIGH);
digitalWrite(ledBPin_, HIGH);
}
void loop()
{
}