Pixl menu

Posted on
  • On ver 1v98 I have only a black bar, but on 1v99 I can see the text also.

    // Pixl00.js
    
    Pixl.menu({'' : {'title' : '--My Menu--'},
               'Backlight on ' : ()=>LED.set(),
               'Backlight off' : ()=>LED.reset(),
               'Back         ' : ()=>Pixl.menu()});
    
    

    It is the one that is on the backside of the quick reference card.
    My old eyes needed a magnifying glass.

    Now to the question: should 'Back' not restart the menu?
    I only get a blank screen.

    Very nice piece of hardware.

  • Thanks! Yes, unfortunately 1v98 had a bug with text rendering (hence the rather hasty release of 1v99).

    This might explain the menu in more detail: http://www.espruino.com/Pixl.js+Menu

    Basically just calling Pixl.menu() will remove the menu, but specifying an object as an argument will add one. Perhaps the label on the card would have made more sense as Exit, but unfortunately I am unable to update those as easily as the website :)

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Pixl menu

Posted by Avatar for Frida @Frida

Actions