@Gordon, I assume it is shift right rather than shift left, is it?
... return (x&1)|((x>>3)&2)|((x>>6)&4)|((x>>9)&8)| ((x>>12)&16)|((x>>15)&32)|((x>>18)&64)|((x>>21)&128); ...
@allObjects 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.
@Gordon, I assume it is shift right rather than shift left, is it?