Difference between revisions of "Mixly Block Category - SerialPort"

From Microduino Wiki
Jump to: navigation, search
(Serial Write)
Line 10: Line 10:
  
 
=Serial Write=
 
=Serial Write=
 +
Writes binary data to the serial port. This data is sent as a byte or series of bytes; to send the characters representing the digits of a number use the print() function instead.
 +
 +
Read more here: https://www.arduino.cc/en/Serial/Write
 +
 
=Serial Print=
 
=Serial Print=
 
=Serial PrintLn=
 
=Serial PrintLn=

Revision as of 00:47, 22 February 2017

Serial is used for communication between the Microduino / Arduino board and a computer or other devices. All Microduino / Arduino boards have at least one serial port (also known as a UART or USART): Serial. It communicates on digital pins 0 (RX) and 1 (TX) as well as with the computer via USB. Thus, if you use these functions, you cannot also use pins 0 and 1 for digital input or output.


Read more here: https://www.arduino.cc/en/Reference/Serial

Serial Baud Rate

Sets the data rate in bits per second (baud) for serial data transmission. For communicating with the computer, use one of these rates: 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, or 115200.


Read more here: https://www.arduino.cc/en/serial/begin

Serial Write

Writes binary data to the serial port. This data is sent as a byte or series of bytes; to send the characters representing the digits of a number use the print() function instead.

Read more here: https://www.arduino.cc/en/Serial/Write

Serial Print

Serial PrintLn

Serial PrintLn(Hex)

Serial Availability

Serial Read String

Serial Read String Until Character Delimitation

Serial Read

  • read
  • peek
  • parseInt
  • paraseFloat

Serial Flush

Software Serial Setup