xod/uart@0.37.3

License: AGPL-3.0

Provides constructors and Nodes to interact with UARTs (Software, Hardware, USB) in XOD.
NodeDescription
change-baud-rate
Changes baud rate of passed UART object. If UART already has started communication it will end it up and begin again with new baud rate.
endNo description
example-printNo description
example-uartNo description
example-readNo description
example-writeNo description
is-available
Checks does UART have an available bytes to read
print
Writes a string bytes per byte into UART. Possible errors: — No bytes written. Probably due to buffer overflow
flush
Waits for the transmission of outgoing serial data to complete and then clears UART buffer.
soft-uart
Constructor of SoftwareUart, provides serial communication on any digital pins.
uart
Constructor of HardwareUart, provides serial communication on default hardware serial ports.
read-byte
Reads one byte from UART. Possible errors: — Can't read byte
read-bytes
Reads all available bytes from UART one by one. Possible errors: — Can't read byte
uart-0
Constructor of HardwareUart, provides serial communication through Serial.
uart-3
Constructor of HardwareUart, provides serial communication through Serial3.
uart-2
Constructor of HardwareUart, provides serial communication through Serial2.
write-byte
Writes a single byte in the UART. Possible errors: — No bytes written. Probably due to buffer overflow
uart-usb
Constructor of HardwareUart or UsbUart, that provides serial communication through SerialUSB.
uart-1
Constructor of HardwareUart, provides serial communication through Serial1.