The issue I had here was that I couldn't get a narrow enough pulse
You're talking about using digitalPulse? There is a known issue there which is on my list of stuff to fix, however I'm talking about the hardware timers...
However to create a train of timed pulses, I believe you could also (ab)use PWM (chapter 47 in the above link).
Interestingly it even shows you the register accesses required, so it shouldn't be too hard to look at the 'REGISTERS' section underneath and then turn those into poke32 commands.
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're talking about using
digitalPulse
? There is a known issue there which is on my list of stuff to fix, however I'm talking about the hardware timers...https://infocenter.nordicsemi.com/pdf/nRF52832_PS_v1.4.pdf chapter 24, TIMER
This one should go quite fast: http://www.espruino.com/NRF52LL#create-a-square-wave-on-pin-d0-with-the-inverse-of-the-square-wave-on-d1-
However to create a train of timed pulses, I believe you could also (ab)use PWM (chapter 47 in the above link).
Interestingly it even shows you the register accesses required, so it shouldn't be too hard to look at the 'REGISTERS' section underneath and then turn those into
poke32
commands.