Monday, February 25, 2013

Hello World on Arduino Due, with message printed in Serial port

There are no display on Arduino board (Arduino Due in my case). We can display message on Arduino IDE's Tools of Serial Monitor, by print on Serial.

Hello World on Arduino Due, with message printed in Serial port.
Hello World on Arduino Due, with message printed in Serial port.



void setup() {
  //Setup Serial Port with baud rate of 115200
  Serial.begin(115200);
  print("Hello World!");
}

void loop() {
  
}

void print(String s){
  Serial.print(s);
}


No comments:

Post a Comment