Hello @btrex

not sure I understand why the LAN module removes port B. Do you mean the LAN module uses the GPIOs normally used for port B?

Anyways, if you are using an M5Core2 device this module might help.

And for an M5Stack device the bus module might be helpful as it exposes all pins.