You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Sorry, I made a really stupid typo I'm afraid...

    return (a>>1)||(a<<7); 
    

    should be:

    return (a>>1)|(a<<7); 
    

    || 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 with flip() function added... then everything works the same way.

About

Avatar for Gordon @Gordon started