Ok, just committed, so you should be able to download one of the Git builds in an hour or so and do the following (on a Pico):
// Do nothing (hopefully!)
E.setClock({M:8, N:336, P:4, Q:7, PCLK1:2, PCLK2:4})
// Halve clock speed to 42Mhz, keeping UART/etc working fine
E.setClock({M:8, N:336, P:8, Q:7, PCLK:1, PCLK2:2})
You can do loads of different stuff, but you'll have to look at the chip's reference manual to get the correct values.
You can also experiment with changing the flash latency with latency. At lower clock speeds you should be able to get away with a latency of 0, which will make the processor a bit more efficient.
The STM32F1 in the original Espruino board is completely different clock-wise, so I haven't included anything for that yet.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ok, just committed, so you should be able to download one of the Git builds in an hour or so and do the following (on a Pico):
You can do loads of different stuff, but you'll have to look at the chip's reference manual to get the correct values.
You can also experiment with changing the flash latency with
latency
. At lower clock speeds you should be able to get away with a latency of 0, which will make the processor a bit more efficient.The STM32F1 in the original Espruino board is completely different clock-wise, so I haven't included anything for that yet.