var data = "10001000000110010000101010101011";
for (var nibble=0;nibble<8;nibble++) {
console.log(parseInt(data.substr(nibble*4,4),2).toString(16));
}
// prints...
8
8
1
9
0
a
a
b
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.
Looks right to me!
And: