This should help? http://www.espruino.com/InlineC#direct-access
That only uses Uint8Array but it's as easy as swapping to Int16Array and then using short* in C
short*
@Gordon 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.
This should help? http://www.espruino.com/InlineC#direct-access
That only uses Uint8Array but it's as easy as swapping to Int16Array and then using
short*
in C