What you're doing looks ok... Can you try just sending the data explicitly with:
function makearr(){ return [0x56, 0xff, 0x08, 0x5a, 0x00, 0xf0, oxaa]; }
It'd remove one potential source of problems. I notice that what you're sending isn't related to what's in the comment at all - is that intentional?
@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.
What you're doing looks ok... Can you try just sending the data explicitly with:
It'd remove one potential source of problems. I notice that what you're sending isn't related to what's in the comment at all - is that intentional?