energia / msp432r-core

MSP432 EMT core for the production silicon (RED LaunchPad only)
2 stars 5 forks source link

Workshop — PWM Issue on RED MSP432P401R LaunchPad 5.6.3 #14

Closed rei-vilo closed 6 years ago

rei-vilo commented 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);  
}
rei-vilo commented 6 years ago

Just released version 5.6.3 doesn't seem to fix the issue.

rei-vilo commented 6 years ago

Solved with release 5.23.1.