Add HelloWorld app

This commit is contained in:
Thomas Farstrike
2025-06-09 16:00:38 +02:00
parent 37c546928d
commit 415b3d7eb3
3 changed files with 35 additions and 0 deletions
@@ -0,0 +1,25 @@
{
"name": "HelloWorld",
"publisher": "MicroPythonOS",
"short_description": "Minimal app",
"long_description": "Demonstrates the simplest app.",
"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.helloworld/icons/com.micropythonos.helloworld_0.0.2_64x64.png",
"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.helloworld/mpks/com.micropythonos.helloworld_0.0.2.mpk",
"fullname": "com.micropythonos.helloworld",
"version": "0.0.2",
"entrypoint": "assets/hello.py",
"category": "development",
"activities": [
{
"entrypoint": "assets/hello.py",
"classname": "Hello",
"intent_filters": [
{
"action": "main",
"category": "launcher"
}
]
}
]
}
@@ -0,0 +1,10 @@
from mpos.apps import Activity
class Hello(Activity):
def onCreate(self):
screen = lv.obj()
label = lv.label(screen)
label.set_text('Hello World!')
label.center()
self.setContentView(screen)
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB