Closed rei-vilo closed 6 years ago
The same code using PWM for the RGB LED works on the black but not on the red MSP432P401R LaunchPad.
The RGB LEDs display yellow, orange and red colours.
The RGB LEDs display none of the colours.
void setup() { // put your setup code here, to run once: pinMode(RED_LED, OUTPUT); pinMode(GREEN_LED, OUTPUT); pinMode(BLUE_LED, OUTPUT); } void setRGB(uint8_t red, uint8_t green, uint8_t blue) { analogWrite(RED_LED, red); analogWrite(GREEN_LED, green); analogWrite(BLUE_LED, blue); } void loop() { // put your main code here, to run repeatedly: setRGB(127, 127, 0); // yellow delay(1000); setRGB(127, 63, 0); // orange delay(1000); setRGB(127, 0, 0); // red delay(1000); }
Just released version 5.6.3 doesn't seem to fix the issue.
Solved with release 5.23.1.
5.23.1
The same code using PWM for the RGB LED works on the black but not on the red MSP432P401R LaunchPad.
The RGB LEDs display yellow, orange and red colours.
The RGB LEDs display none of the colours.