port_disconnect - Disconnect output connection
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. |
No value is returned.
init { // If USB OUTPUT is connected ... if(port_status(PORT_USB_C, NULL, NULL) & DIR_OUTPUT) { // ... disconnect it. port_disconnect(); } }