cpufreq module is used for easily controlling the cpu frequency.
In particular, the
cpufreq module allows you to easily underclock or
overclock your OpenMV Cam.
import cpufreq cpufreq.set_frequency(cpufreq.CPUFREQ_216MHZ)
The OpenMV Cam M4’s default frequency is 180MHz. The OpenMV Cam M7’s default frequency is 216MHz.
Returns a tuple containing:
-  - sysclk: frequency of the CPU (int).
-  - hclk: frequency of the AHB bus, core memory and DMA (int).
-  - pclk1: frequency of the APB1 bus (int).
-  - pclk2: frequency of the APB2 bus (int).
Changes the cpu frequency.
freqmay be one of:
Used to set the frequency to 120 MHz.
Used to set the frequency to 144 MHz.
Used to set the frequency to 168 MHz.
Used to set the frequency to 192 MHz.
Used to set the frequency to 216 MHz.