Generally, Arducam mini 2MP can be run as long as the I2C and SPI pins are connected correctly.I recommend you verify that the pins used in the code are the same as the pins you actually connected to, and if you still can’t use them, you could paste the error messages.