Mixly Block Category - SerialPort

From Microduino Wiki
Revision as of 00:48, 22 February 2017 by Sonny (talk) (Serial Print)
Jump to: navigation, search

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

Prints data to the serial port as human-readable ASCII text. This command can take many forms. Numbers are printed using an ASCII character for each digit. Floats are similarly printed as ASCII digits, defaulting to two decimal places. Bytes are sent as a single character.


Read more here: https://www.arduino.cc/en/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