For displays, we generally just just create an exports.connect function and then return the Graphics object we created with flip() function added... then everything works the same way.
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.
Sorry, I made a really stupid typo I'm afraid...
should be:
||
is a logical OR, but|
is a binary one that works on all bits. Glad you got it sorted though!There's a bit of info on writing and submitting modules here: http://www.espruino.com/Writing+Modules
For displays, we generally just just create an
exports.connect
function and then return the Graphics object we created withflip()
function added... then everything works the same way.