Reference.SoftwareSerialPrintln History

Hide minor edits - Show changes to markup

June 04, 2010, at 12:11 PM by Equipo Traduccion -
Changed lines 30-31 from:
  serial.print(valorAnalogico);         // lo imprime como un decimal codificado como ASCII  serial.print("\t");                // imprime un tabulador
to:
  serial.print(valorAnalogico);         // lo imprime como un decimal codificado como ASCII
  serial.print("\t");                // imprime un tabulador
June 04, 2010, at 12:11 PM by Equipo Traduccion -
Changed line 46 from:
  // delay 10 milliseconds before the next reading:
to:
  // espera 10 milisegundos antes de la siguiente lectura:
Changed lines 50-51 from:

See also

to:

Ver también

June 04, 2010, at 12:10 PM by Equipo Traduccion -
Changed lines 30-31 from:
  serial.print(valorAnalogico);         // print as an ASCII-encoded decimal
to:
  serial.print(valorAnalogico);         // lo imprime como un decimal codificado como ASCII  serial.print("\t");                // imprime un tabulador
  serial.print(valorAnalogico, DEC);    // lo imprime como un decimal codificado como ASCII  
Changed line 33 from:
  serial.print(valorAnalogico, DEC);    // print as an ASCII-encoded decimal
to:
  serial.print(analogValue, HEX);    // lo imprime como un hexadecimal codificado como ASCII  
Changed line 35 from:
  serial.print(analogValue, HEX);    // print as an ASCII-encoded hexadecimal
to:
  serial.print(valorAnalogico, OCT);    // lo imprime como un octal codificado como ASCII  
Changed line 37 from:
  serial.print(valorAnalogico, OCT);    // print as an ASCII-encoded octal
to:
  serial.print(valorAnalogico, BIN);    // lo imprime como un binario codificado como ASCII  
Changed lines 39-42 from:
  serial.print(valorAnalogico, BIN);    // print as an ASCII-encoded binary
to:
  serial.print(valorAnalogico/4, BYTE); // lo imprime como el valor del byte en bruto (divide el 
                                     // valor entre 4 porque analogRead devuelve números
                                     // de 0 a 1023, pero un byte sólo puede contener valores
                                     // hasta 255)
Deleted lines 43-47:
  serial.print(valorAnalogico/4, BYTE); // print as a raw byte value (divide the
                                     // value by 4 because analogRead() returns numbers
                                     // from 0 to 1023, but a byte can only hold values
                                     // up to 255)
  serial.print("\t");                // imprime un tabulador
June 04, 2010, at 12:08 PM by Equipo Traduccion -
Changed lines 17-18 from:

int analogValue;

to:

int valorAnalogico;

Changed lines 27-28 from:
  analogValue = analogRead(0);
to:
  valorAnalogico = analogRead(0);
Changed lines 30-33 from:
  serial.print(analogValue);         // print as an ASCII-encoded decimal
  serial.print("\t");                // print a tab character
  serial.print(analogValue, DEC);    // print as an ASCII-encoded decimal
  serial.print("\t");                // print a tab character
to:
  serial.print(valorAnalogico);         // print as an ASCII-encoded decimal
  serial.print("\t");                // imprime un tabulador
  serial.print(valorAnalogico, DEC);    // print as an ASCII-encoded decimal
  serial.print("\t");                // imprime un tabulador
Changed lines 35-40 from:
  serial.print("\t");                // print a tab character
  serial.print(analogValue, OCT);    // print as an ASCII-encoded octal
  serial.print("\t");                // print a tab character
  serial.print(analogValue, BIN);    // print as an ASCII-encoded binary
  serial.print("\t");                // print a tab character
  serial.print(analogValue/4, BYTE); // print as a raw byte value (divide the
to:
  serial.print("\t");                // imprime un tabulador
  serial.print(valorAnalogico, OCT);    // print as an ASCII-encoded octal
  serial.print("\t");                // imprime un tabulador
  serial.print(valorAnalogico, BIN);    // print as an ASCII-encoded binary
  serial.print("\t");                // imprime un tabulador
  serial.print(valorAnalogico/4, BYTE); // print as a raw byte value (divide the
Changed lines 44-46 from:
  serial.print("\t");                // print a tab character    
  serial.println();                  // print a linefeed character
to:
  serial.print("\t");                // imprime un tabulador
  serial.println();                  // imprime un retorno de carro
June 04, 2010, at 12:06 PM by Equipo Traduccion -
Changed lines 1-15 from:

SoftwareSerial: println(data)

Description

Prints data to the transmit pin of the software serial port, followed by a carriage return and line feed. Works the same as the Serial.println() function.

Parameters

vary, see Serial.println() for details

Returns

none

Example

to:

SoftwareSerial: println(datos)

Descripción

Imprime datos al pin de transmisión del puerto SoftwareSerial, seguido de un retorno de carro y un salto de linea.. Funciona como la función Serial.println().

Parámetros

Varían, ver Serial.println() para más detalles

Retorno

ninguno

Ejemplo

May 17, 2007, at 05:05 PM by David A. Mellis -
Changed lines 1-2 from:

SoftwareSerial.println(data)

to:

SoftwareSerial: println(data)

Changed lines 54-56 from:
to:
December 23, 2006, at 05:16 AM by David A. Mellis -
Added lines 1-56:

SoftwareSerial.println(data)

Description

Prints data to the transmit pin of the software serial port, followed by a carriage return and line feed. Works the same as the Serial.println() function.

Parameters

vary, see Serial.println() for details

Returns

none

Example

SoftwareSerial serial(6, 7);
int analogValue;

void setup()
{
  serial.begin(9600);
}

void loop()
{
  // read the analog input on pin 0:
  analogValue = analogRead(0);

  // print it out in many formats:
  serial.print(analogValue);         // print as an ASCII-encoded decimal
  serial.print("\t");                // print a tab character
  serial.print(analogValue, DEC);    // print as an ASCII-encoded decimal
  serial.print("\t");                // print a tab character
  serial.print(analogValue, HEX);    // print as an ASCII-encoded hexadecimal
  serial.print("\t");                // print a tab character
  serial.print(analogValue, OCT);    // print as an ASCII-encoded octal
  serial.print("\t");                // print a tab character
  serial.print(analogValue, BIN);    // print as an ASCII-encoded binary
  serial.print("\t");                // print a tab character
  serial.print(analogValue/4, BYTE); // print as a raw byte value (divide the
                                     // value by 4 because analogRead() returns numbers
                                     // from 0 to 1023, but a byte can only hold values
                                     // up to 255)
  serial.print("\t");                // print a tab character    
  serial.println();                  // print a linefeed character

  // delay 10 milliseconds before the next reading:
  delay(10);
} 

See also

Share