What properties and values do I have to use in E.setClock(...) for using Serial2/USART2?
USART2 is on PCLK1 according to the reference manual, so you'd need to use PCLK1:4 to halve the clock rate of that.
PCLK1:4
I can't be sure where USB gets its clock from, so there is some possibility that lowering the PCLK1 speed will break USB - I'm not sure
@Gordon started
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.
USART2 is on PCLK1 according to the reference manual, so you'd need to use
PCLK1:4
to halve the clock rate of that.I can't be sure where USB gets its clock from, so there is some possibility that lowering the PCLK1 speed will break USB - I'm not sure