Which board are you using? All your other questions seem to have been about ESP32.
Do you want to output just a single pulse? If you do have an STM32-based board likle in https://www.espruino.com/STM32+Peripherals I believe you should be able to set the timer not to auto-reload, in which case it'll just do one pulse.
... or you can maybe use SPI - put the pulse (or pulses) you want as bits in an array, and then just use SPI to send the array and the pulses will appear on the MOSI line
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.
Which board are you using? All your other questions seem to have been about ESP32.
Do you want to output just a single pulse? If you do have an STM32-based board likle in https://www.espruino.com/STM32+Peripherals I believe you should be able to set the timer not to auto-reload, in which case it'll just do one pulse.
... or you can maybe use SPI - put the pulse (or pulses) you want as bits in an array, and then just use SPI to send the array and the pulses will appear on the MOSI line