hub.portΒΆ
The port module contains constants that enable easy addressing of the
lettered ports on the SPIKE Prime hub. Use the constants in all functions that
take a port parameter.
To use the port module add the following import statement to your
project:
from hub import port
All constants in the module should be called inside the port module
as a prefix like so:
port.A
The following constants are defined:
A= 0B= 1C= 2D= 3E= 4F= 5