
The examples are set up for the Grand Central header. On the SAMD51, the PCC pins are set in stone and can’t be assigned to other locations, but these few pins are OK being routed to other locations. The pins structure specifies Arduino pin numbers where the camera’s enable, reset and XCLK pins are connected. For other M4 boards, you need to specify what timer/counter peripheral (PWM out) connects to the camera’s XCLK input, and, if the timer is a TCC peripheral, if special pin multiplexing is required for it (super esoteric, probably won’t need to change). If using Grand Central, you can just copy this line to your own code. In principle, in the future, there might be different arch structures for different hardware. The arch structure contains values specific to the SAMD51 hardware.


In the globals section of the sketch…outside the setup() and loop() functions…we set up some structures and call the OV7670 constructor.
