ports.UnassignedPortException
- exception ports.UnassignedPortException(port: int)
Thrown when accessing an unassigned port.
from ports import PortReference PortReference(0)
The above code will raise an
UnassignedPortExceptionwhen run with no controllable assigned to port0in the properties tab of the microcontroller with this script.