Which Sercom is used for TWI (I2C) by default?

According to this page I thought it would be Sercom0 so I used sercom2 for UART, but my code doesn't compile and it seems arduino mkr WIFI uses sercome 2 for I2C? Is this correct?

Thanks!

In varient.cpp it shows that i2c could be on both, but it also marks sercom0 with an asterisk which I assume means it the one used by default...

Hi endrew,

You can see which sercom is used in MKR1010's "variant.h" file.

It uses sercom2:

/ Wire Interfaces
// ---------------
#define WIRE_INTERFACES_COUNT 1

// Wire
#define PIN_WIRE_SDA        (11u)
#define PIN_WIRE_SCL        (12u)
#define PERIPH_WIRE         sercom2
#define WIRE_IT_HANDLER     SERCOM2_Handler