]> git.piffa.net Git - sketchbook_andrea/blob - basic/Serial_hello_world/Serial_hello_world.ino
846a79829a9f8e872317e8c1cb45379deef2f057
[sketchbook_andrea] / basic / Serial_hello_world / Serial_hello_world.ino
1 /*
2  *   Hello World!
3  *
4  * This is the Hello World! for Arduino. 
5  * It shows how to send data to the computer trough the serial connection
6  */
7
8 void setup()                   
9 {
10   Serial.begin(9600);           // set up Serial library at 9600 bps
11   // If the Arduino transfers data at 9600 bits per second 
12   // and you're sending 12 bytes of data, how long does it take to send over this information? 
13
14   // Try to change bond rate in the monitor
15
16   Serial.println("Hello World!");  // prints hello with ending line break 
17   
18   
19   Serial.print("Il mio nome e': ") // Scrive senza ritorno a capo
20   Serial.println("Andrea");        // Scrive con ritorno a capo
21   Serial.flush                     // Assicura che tutto il testo venga scritto
22
23 }
24
25 void loop()                       // run over and over again
26 {
27   // Try to put the Serial.printl() statenent in here, with a delay maybe
28 }
29
30
31
32