From f6b06dbfcd44c2cddf6053fe1d824dbdc8493fa1 Mon Sep 17 00:00:00 2001 From: Andrea Manni Date: Tue, 10 Mar 2015 18:53:55 +0100 Subject: [PATCH] Errata --- .../Serial_hello_world/Serial_hello_world.ino | 32 ------------------- .../serial_hello_world/serial_hello_world.ino | 32 +++++++++++++++++++ 2 files changed, 32 insertions(+), 32 deletions(-) delete mode 100644 basic/Serial_hello_world/Serial_hello_world.ino create mode 100644 basic/serial_hello_world/serial_hello_world.ino diff --git a/basic/Serial_hello_world/Serial_hello_world.ino b/basic/Serial_hello_world/Serial_hello_world.ino deleted file mode 100644 index 846a798..0000000 --- a/basic/Serial_hello_world/Serial_hello_world.ino +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Hello World! - * - * This is the Hello World! for Arduino. - * It shows how to send data to the computer trough the serial connection - */ - -void setup() -{ - Serial.begin(9600); // set up Serial library at 9600 bps - // If the Arduino transfers data at 9600 bits per second - // and you're sending 12 bytes of data, how long does it take to send over this information? - - // Try to change bond rate in the monitor - - Serial.println("Hello World!"); // prints hello with ending line break - - - Serial.print("Il mio nome e': ") // Scrive senza ritorno a capo - Serial.println("Andrea"); // Scrive con ritorno a capo - Serial.flush // Assicura che tutto il testo venga scritto - -} - -void loop() // run over and over again -{ - // Try to put the Serial.printl() statenent in here, with a delay maybe -} - - - - diff --git a/basic/serial_hello_world/serial_hello_world.ino b/basic/serial_hello_world/serial_hello_world.ino new file mode 100644 index 0000000..7f8e814 --- /dev/null +++ b/basic/serial_hello_world/serial_hello_world.ino @@ -0,0 +1,32 @@ +/* + * Hello World! + * + * This is the Hello World! for Arduino. + * It shows how to send data to the computer trough the serial connection + */ + +void setup() +{ + Serial.begin(9600); // Inposta la seriale a 9600 bps + // Se Arduino manda 9600 bit per secondo e devi manandare 12 Bytes di dati + // quanto tempo serve per mandare i dati? + + // Try to change bond rate in the monitor + + Serial.println("Hello World!"); // scrive hello world e ritorna a capo + + +// Serial.print("Il mio nome e': "); // Scrive senza ritorno a capo +// Serial.println("Andrea"); // Scrive con ritorno a capo +// Serial.flush(); // Assicura che tutto il testo venga scritto + +} + +void loop() +{ + // Provate a mettere i Serial.printl() qui, magari con un delay() +} + + + + -- 2.39.2