Serial Monitor Not working on Mac

Hello:

I cannot seem to get a response on my serial monitor. I am able to upload to my Arduino Micro fine, but cant seem to get anything in the serial monitor. When the program is run the RX light flash twice and the TX light does not blink.

This is code I am running.

/*
 * Hello World!
 *
 * This is the Hello World! for Arduino. 
 * It shows how to send data to the computer
 */


void setup()                    // run once, when the sketch starts
{
  Serial.begin(9600);           // set up Serial library at 9600 bps
  
  Serial.println("Hello world!");  // prints hello with ending line break 
}

void loop()                       // run over and over again
{
                                  // do nothing!
}

Thanks for your help!

The Arduino Micro is based on the ATmega32u4, same as the Leonardo. You have to add code to wait for the USB connection to establish before sending to the serial port:

/*
 * Hello World!
 *
 * This is the Hello World! for Arduino. 
 * It shows how to send data to the computer
 */


void setup()                    // run once, when the sketch starts
{
  Serial.begin(9600);           // set up Serial library at 9600 bps
  while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }
  Serial.println("Hello world!");  // prints hello with ending line break 
}

void loop()                       // run over and over again
{
                                  // do nothing!
}