Skip to content

EXRAIL Combined Rotary encoder and menu structure on oled. #487

@Asbelos

Description

@Asbelos

Macros to define a simple menu structure with rotary encoder input and SCREEN output...

click selects sub menu or sequence

e.g.
MENU(menunumber, screen, screenrow, rocopins...)
MITEM(menunumber, structuredid, "text")
MACTION(menunumber,strturedid,sequence)

MENU(666,2,....)
MITEM(666,1,"Play a tune")
MITEM(666,10,"Thomas the blue engine")
MITEM(666,11,"CU Jimmy the tartan engine")
MITYEM(666,2,"STOP")
MITEM(666,20,"All locos")

MACTION(100)
PLAY(123,3,LOUD)
DONE

MACTION(200)
ESTOPALL
DONE

so roco cycles through menu items at current level, and if one is clicked it multiplies by 10 and sees whether whats next is a submenu or an action...

Note need to incorporate a BACK option...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Brain Dump Ideas

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions