Yes, it should be pretty straightforward. You spotted setRotation, but it's actually got an optional second argument to mirror as well: http://www.espruino.com/Reference#l_Graphics_setRotation
setRotation
So you can either do setRotation(0,true) to flip one way, or can rotate 180 degrees and mirror with setRotation(2,true) to flip the other :)
setRotation(0,true)
setRotation(2,true)
@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.
Yes, it should be pretty straightforward. You spotted
setRotation
, but it's actually got an optional second argument to mirror as well: http://www.espruino.com/Reference#l_Graphics_setRotationSo you can either do
setRotation(0,true)
to flip one way, or can rotate 180 degrees and mirror withsetRotation(2,true)
to flip the other :)