Skip to content

Instantly share code, notes, and snippets.

@amirgon
Created December 17, 2019 19:52
Show Gist options
  • Save amirgon/51299ce9b6448328a855826149482ae6 to your computer and use it in GitHub Desktop.
Save amirgon/51299ce9b6448328a855826149482ae6 to your computer and use it in GitHub Desktop.
Hello World LittlevGL (assumes drivers are loaded and lv.init() was called)
scr = lv.obj()
btn = lv.btn(scr)
btn.align(scr, lv.ALIGN.CENTER, 0, 0)
label = lv.label(btn)
label.set_text('Hello World!')
lv.scr_load(scr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment