Discussion Forums

What Magic is used for Serial.Print in Arduino


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.
pinMode(led, OUTPUT);

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