You can get that on a pwm pin real easy...
analogWrite(pin, 0.5, {freq:1000})
Do you know the highest frequency that can be achieved with analogWrite?
@user52526 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.
You can get that on a pwm pin real easy...
analogWrite(pin, 0.5, {freq:1000})