mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-30 19:52:13 +01:00
Updated YunSerialTerminal
This commit is contained in:
parent
04d19946f4
commit
765a975414
@ -20,11 +20,7 @@
|
|||||||
This example code is in the public domain.
|
This example code is in the public domain.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
<<<<<<< HEAD
|
long baud = 115200;
|
||||||
long baud = 9600;
|
|
||||||
=======
|
|
||||||
long baud = 57600;
|
|
||||||
>>>>>>> 113e28d86188899e529ced3fed04e4116e3f5a88
|
|
||||||
|
|
||||||
// Pin 13 has an LED connected on most Arduino boards.
|
// Pin 13 has an LED connected on most Arduino boards.
|
||||||
// give it a name:
|
// give it a name:
|
||||||
@ -35,6 +31,8 @@ int ledState = HIGH; // whether the LED is high or low
|
|||||||
void setup() {
|
void setup() {
|
||||||
Serial.begin(baud); // open serial connection to Linino
|
Serial.begin(baud); // open serial connection to Linino
|
||||||
Serial1.begin(baud); // open serial connection via USB-Serial
|
Serial1.begin(baud); // open serial connection via USB-Serial
|
||||||
|
Serial.println("Prova"); // Hello USB
|
||||||
|
Serial1.println("Prova1"); // Hello Linino
|
||||||
|
|
||||||
// initialize the digital pin as an output.
|
// initialize the digital pin as an output.
|
||||||
pinMode(led, OUTPUT);
|
pinMode(led, OUTPUT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user