Portenta machine control pin numbers

I just got the Portenta machine control. I´m having trouble to test simple commands like digitalRead and digitalWrite. Where can I find information on the pin numbers for Digital Inputs, outputs and programmable I/O´s?

There's a pretty comprehensive pinout PDF for the Machine Control you can download from the "Resources" section of its documentation page:

Hello @morpork, not sure you can use digitalRead() and digitalWrite() with the Machine Control module. I just bought one and I am using them with the library Arduino_MachineControl.h, like this : "digital_inputs.read(DIN_READ_CH_PIN_00)"
The problem is that those function are pretty slow and I can't get them to run faster than to 500us.
Hope it helps

Thanks!