]> git.piffa.net Git - sketchbook_andrea/blob - oggi/serial_hello_world/serial_hello_world.ino
oggi
[sketchbook_andrea] / oggi / 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);           // Inposta la seriale a 9600 bps
11   // Se Arduino manda 9600 bit per secondo e devi manandare 12 Bytes di dati
12   // quanto tempo serve per mandare i dati?
13
14   // Try to change bond rate in the monitor
15
16   Serial.println("Hello World!");   // scrive hello world e ritorna a capo
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()                       
26 {
27   // Provate a mettere i  Serial.printl() qui, magari con un delay()
28 }
29
30
31
32