UsbWriteln connection, data$

This command writes a string as bytes to a USB serial connection. The string is sent followed by a newline character "\n". It is important to note that only the lower eight bits of each character is written to the USB serial connection. The strings being written should be thought of as containing bytes.

UsbWriteln 1, data$

err$ = UsbGetError$(1)
if err$ <> "" then Print "Err: "; err$
if UsbGetState(1) <> 1 then Print "Connection Lost"

USB Serial Communication

Become a Patron