Hello World   C++ Arduino


Summary

Print 'Hello World!' text to the Serial when serial port is connected.


Requirements

Arduino IDE


void setup() {
  // Initialize serial and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB
  }
  Serial.println("Hello World!");
}

void loop() {
  // proceed normally
}

setup() function is execute once.
Open the Serial Monitor to see the result.


Result

Hello World!

References


Tags

#cout  #echo  #helloworld  #printf  #println 


[ Edit (Author only) ]