What Magic is used for Serial.Print in Arduino


#1

Not able to print to Serial Monitor. I checked other similar posts, but nothing seems to work. In the simple example below, the LED is blinking every 1.5 seconds.

int led = 13;
void setup() {
// initialize the digital pin as an output.
Serial.begin(9600);
pinMode(led, OUTPUT);
}

// forever loop
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
Serial.println(“HIGH”);
delay(1500); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
Serial.println(“LOW”);
delay(1500); // wait for a second
}