Thursday, July 23, 2015

Hello World #Learn Arduino

The first time we practicing programming ussually with "hello world". Since Arduino both hardware and software, here is how to hello world in Arduino

---------------------------------------------------------------------------------------------------

//Learn Arduino-Hello world

void setup () {
  Serial.begin(9600);//open serial port with speed 9600 bit per second
  delay(10000); // delay time 10 second
  Serial.println("Hello world"); //print out the hello world
}

void loop () {}

---------------------------------------------------------------------------------------------------
 verivy, uplod and we just simply type "ctrl+shift+M" to show the print of "hello world", and then we got this from serial monitor





No comments: