** simple example is update. You can see it in the repo
- init a menu object
m=menu.menu(ssd1306object,0,0,128,64)- init a menu text list, The first element is the text to display, and the second element arg offset is use to display middle parts of the menu.
menutext=[['menuText1','print("this is the menuText1")'],['menuText2','print("this is the menuText2")']]
m.initText(menutext)-
When your Device detects Events, use
m.moveUp(),m.moveDown(),m.click()orm.clickSpecial()to control menu bar. -
More help about this library is included in the source file.
Note:
- This library will not update scrren automatically, considering other element in the screen. All operations write to screen buffer. Use
ssd1306object.show()to refresh the screen via buffer.

