83Plus:Software:usb8x/BASIC Interface/IsDeviceConnected
From WikiTI
Contents
Synopsis
Name: IsDeviceConnected
Function Number: 0
Minimum usb8x version: 0.07
Returns whether a USB device is connected
Inputs
None
Outputs
- 1: Error code
- 2: 1 = device connected
Notes
Like the assembly language version of this routine, IsDeviceConnected doesn't actually check to see if a device is connected. Instead, it checks whether an A-style USB cable is plugged into the USB port, regardless of whether there's a device connected to the other side.