Yep - setWatch is nice and easy (and accurate on STM32F4), but being JS execution is slowish you'll struggle at much above 1kHz - but as @Jean-Philippe_Rey points out you may be able to modify your circuit to lower the frequency.
The link I posted above should be pretty much copy/paste and will give you nice accurate results for the higher frequencies though
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.
Yep -
setWatch
is nice and easy (and accurate on STM32F4), but being JS execution is slowish you'll struggle at much above 1kHz - but as @Jean-Philippe_Rey points out you may be able to modify your circuit to lower the frequency.The link I posted above should be pretty much copy/paste and will give you nice accurate results for the higher frequencies though