Reputation: 11
I am using MSP430G2553. If I write the following code in energia-0101E0014 doesn't gives any error but in serial monitor data doesn't print but LED blinks perfectly. I know COM port settings and Baud Rate settings and they are correct.
#define LED RED_LED
void setup()
{
Serial.begin(4800);
pinMode(LED, OUTPUT);
}
void loop()
{
Serial.print("Hello world\n");
digitalWrite(LED, HIGH);
delay(1000);
digitalWrite(LED, LOW);
delay(1000);
}
Upvotes: 1
Views: 1342