Ahh - I definitely wouldn't do that... it's probably less confusing to just write the actual number in there :) The first option (well, just C.CMD_SOMETHING) works well.
Is that possible with the arraybuffer Graphics instance?
Yes, totally - it's made for exactly this kind of thing. There are even options for some of the really bizarre pixel ordering that some displays use :)
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.
Ahh - I definitely wouldn't do that... it's probably less confusing to just write the actual number in there :) The first option (well, just
C.CMD_SOMETHING
) works well.Yes, totally - it's made for exactly this kind of thing. There are even options for some of the really bizarre pixel ordering that some displays use :)
or:
should do it... Then just use
g.buffer
(which is a standard ArrayBuffer - you may need to usenew Uint8Array(g.buffer)
on it to get at the data).Try drawing a diagonal line first (it usually helps to see what's wrong :).