Hide minor edits - Show changes to markup
Serial.begin(velocidad)
Serial.begin(speed)
Serial1.begin(velocidad)
Serial2.begin(velocidad)
Serial3.begin(velocidad)
Serial1.begin(speed)
Serial2.begin(speed)
Serial3.begin(speed)
velocidad: en bits por segundo (baudios) - long
speed: Velocidad en bits por segundo (baudios) - long
Sets the data rate in bits per second (baud) for serial data transmission. For communicating with the computer, use one of these rates: 300, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, or 115200. You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate.
Serial.begin(speed)
Arduino Mega only:
Serial1.begin(speed)
Serial2.begin(speed)
Serial3.begin(speed)
speed: in bits per second (baud) - long
nothing
Establece la velocidad de datos en bits por segundo (baudios) para la transmisión de datos en serie. Para comunicarse con el computador, utilice una de estas velocidades: 300, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600 o 115200. Sin embargo, puedes especificar otras velocidades - por ejemplo, para comunicarte a través de los pines 0 y 1 con un componente que requiere una velocidad de transmisión en particular.
Serial.begin(velocidad)
Solamente en Arduino Mega:
Serial1.begin(velocidad)
Serial2.begin(velocidad)
Serial3.begin(velocidad)
velocidad: en bits por segundo (baudios) - long
nada
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
Serial.begin(9600); // abre el puerto serie y establece la velocidad en 9600 bps
Arduino Mega example:
Ejemplo para Arduino Mega:
// Arduino Mega using all four of its Serial ports
// Arduino Mega usando sus 4 puertos serie
// with different baud rates:
// con diferentes velocidades de datos:
Serial.println("Hello Computer");
Serial1.println("Hello Serial 1");
Serial2.println("Hello Serial 2");
Serial3.println("Hello Serial 3");
Serial.println("Hola ordenador");
Serial1.println("Hola Serial 1");
Serial2.println("Hola Serial 2");
Serial3.println("Hola Serial 3");
Thanks to Jeff Gray for the mega example
Gracias a Jeff Gray por el ejemplo
Serial.begin(speed)
Arduino Mega only:
Serial1.begin(speed)
Serial2.begin(speed)
Serial3.begin(speed)
long datarate, in bits per second (baud)
speed: in bits per second (baud) - long
int datarate, in bits per second (baud)
long datarate, in bits per second (baud)
void loop() {}
void loop() {}
// Arduino Mega using all four of its Serial ports (Serial, Serial1, Serial2, Serial3), with different baud rates
// Arduino Mega using all four of its Serial ports // (Serial, Serial1, Serial2, Serial3), // with different baud rates:
Arduino Mega example:
// Arduino Mega using all four of its Serial ports (Serial, Serial1, Serial2, Serial3), with different baud rates
void setup(){
Serial.begin(9600);
Serial1.begin(38400);
Serial2.begin(19200);
Serial3.begin(4800);
Serial.println("Hello Computer");
Serial1.println("Hello Serial 1");
Serial2.println("Hello Serial 2");
Serial3.println("Hello Serial 3");
}
Thanks to Jeff Gray for the mega example
Sets the data rate in bits per second for serial data transmission.
Sets the data rate in bits per second (baud) for serial data transmission. For communicating with the computer, use one of these rates: 300, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, or 115200. You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate.
int datarate, in bits per second.
int datarate, in bits per second (baud)
Serial.begin(speed);
sets the data rate for serial data transmission.
Example:
Sets the data rate in bits per second for serial data transmission.
int datarate, in bits per second.
nothing
@]
Serial.begin(speed);
sets the data rate for serial data transmission.
Example:
void setup() {
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
}