I'm not sure, but that might be good enough to send the command followed by a stop. You could use setTimeout but as you note, because of the tight timing it might be better to just pad it out with a few commands to get a good enough delay.
But as being as there is already a library to handle AM230x comms in it's single-bus mode it's probably more sensible to just use that
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.
Wow, that's a bit frustrating. It could be that you can do:
I'm not sure, but that might be good enough to send the command followed by a stop. You could use
setTimeout
but as you note, because of the tight timing it might be better to just pad it out with a few commands to get a good enough delay.But as being as there is already a library to handle AM230x comms in it's single-bus mode it's probably more sensible to just use that