Site Tools
Sidebar
User's Manual
t2:port_disconnect
port_disconnect
port_disconnect - Disconnect output connection
Description
void port_disconnect();
Disconnect the active output connection.
Only a single output connection can exist at time on either PORT_USB_C or PORT_BT_C . |
The effects of port_disconnect() remains after unload the script that called it, until the next power cycle. Use port_connect() to reconnect a disconnected port. |
Return Value
No value is returned.
Examples
Example #1 port_disconnect() example
init { // If USB OUTPUT is connected ... if(port_status(PORT_USB_C, NULL, NULL) & DIR_OUTPUT) { // ... disconnect it. port_disconnect(); } }
See Also
t2/port_disconnect.txt · Last modified: 2017/12/11 11:40 by J2Kbr