It has been asked once or twice, and while you can hack something up with JavaScript (just setting g.setRotation) I think realistically it'll need something at the firmware level to ensure that touch coordinates are handled ok.
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.
It has been asked once or twice, and while you can hack something up with JavaScript (just setting
g.setRotation
) I think realistically it'll need something at the firmware level to ensure that touch coordinates are handled ok.