Help us help you.
Why can't you put the SPI devices onto 1 SPI bus?
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
You do know that using portB for I/O will cause issue? PortB is optimized for A:D and is INPUT only pins.
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
What issue are you having that you can't you post your code in code tags?
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination
Why are you trying to define 3 SPI ports? The ESP32 only has 2 SPI hardware ports. Each SPI hardware port on the ESP32 can drive 3 SPI devices each.
Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination