Skip to content

This is a easy menu screen moudle base on micropython and ssd1306.It change some text list to menu.

License

Notifications You must be signed in to change notification settings

wmdscjhdpy/micropython-EsayMenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micropython Easy Menu

view view2

usage

** simple example is update. You can see it in the repo

  1. init a menu object
m=menu.menu(ssd1306object,0,0,128,64)
  1. 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)
  1. When your Device detects Events, use m.moveUp(),m.moveDown(),m.click() or m.clickSpecial() to control menu bar.

  2. 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.

About

This is a easy menu screen moudle base on micropython and ssd1306.It change some text list to menu.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages