That's correct (although G goes up to 63) - it's called 'RGB565' and is a standard way of packing RGB data into 16 bits.
If you just want an easy solution use g.setColor though :)
g.setColor
@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.
That's correct (although G goes up to 63) - it's called 'RGB565' and is a standard way of packing RGB data into 16 bits.
If you just want an easy solution use
g.setColor
though :)