Documentation
¶
Index ¶
Constants ¶
const ( // BaudRate300 ... BaudRate300 = 300 // BaudRate600 ... BaudRate600 = 600 // BaudRate1200 ... BaudRate1200 = 1200 // BaudRate2400 ... BaudRate2400 = 2400 // BaudRate4800 ... BaudRate4800 = 4800 // BaudRate9600 ... BaudRate9600 = 9600 // BaudRate14400 ... BaudRate14400 = 14400 // BaudRate19200 ... BaudRate19200 = 19200 // BaudRate28800 ... BaudRate28800 = 28800 // BaudRate38400 ... BaudRate38400 = 38400 // BaudRate57600 ... BaudRate57600 = 57600 // BaudRate115200 ... BaudRate115200 = 115200 )
Variables ¶
var ( // AvailableN ... AvailableN = 0 // Baud ... Baud = 0 )
Functions ¶
func Available ¶
func Available() int
Available gets the number of bytes (characters) available for reading from the serial port. @see: https://www.arduino.cc/reference/en/language/functions/communication/serial/available/
func Begin ¶
func Begin(baud int)
Begin sets the data rate in bits per second (baud) for serial data transmission. @see: https://www.arduino.cc/reference/en/language/functions/communication/serial/begin/
func Print ¶
func Print(val interface{})
Print prints data to the serial port as human-readable ASCII text. @see: https://www.arduino.cc/reference/en/language/functions/communication/serial/print/
func Println ¶
func Println(val interface{})
Println prints data to the serial port as human-readable ASCII text followed by a carriage return character (ASCII 13, or '\r') and a newline character (ASCII 10, or '\n'). @see: https://www.arduino.cc/reference/en/language/functions/communication/serial/println/
Types ¶
This section is empty.