This library is based on jebentancour/Pi-MCP23S17.
This library is compatible with the MicroPython for the Raspberry Pi Pico and RP2040 Microcontrollers.
To use it (it must be in the same directory):
from Pico_MCP23S17 import MCP23S17
Toggles an onboard LED + all MCP pins at 5Hz.
Prints a message and toggles LED if a pin changes.