Skip to content

Commit 4ad3d81

Browse files
committed
app system upgrade
1 parent 46d0c10 commit 4ad3d81

54 files changed

Lines changed: 6955 additions & 96 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.DS_Store

0 Bytes
Binary file not shown.

Crowpanel_7"_esp32s3/.DS_Store

0 Bytes
Binary file not shown.
2 KB
Binary file not shown.
Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
Sample Apps for fOS (SD Card)
22

3-
Includes three apps:
4-
- hello_fos (plain text)
5-
- button_demo (interactive button)
6-
- ebook_demo (long, scrollable text)
3+
Includes six apps:
4+
- hello_fos (type=ui, mehrere UI-Elemente per layout.ui)
5+
- button_demo (type=ui, Button/Panels per layout.ui)
6+
- ebook_demo (type=text, langer scrollbarer Inhalt aus book.txt)
7+
- ui_demo (frei definierbare UI-Elemente in layout.ui)
8+
- calculator_demo (type=calculator, + - * /, Komma, Math Error bei /0)
9+
- radio_demo (type=radio, Dateien + Webradio mit Start/Stop)
710

811
Option A: Use the script
912
1) Insert the SD card
@@ -16,12 +19,40 @@ Option B: Copy directly
1619
/apps/hello_fos/...
1720
/apps/button_demo/...
1821
/apps/ebook_demo/...
22+
/apps/ui_demo/...
23+
/apps/calculator_demo/...
24+
/apps/radio_demo/...
25+
- For radio web streams also copy:
26+
/music/webradio/webradio.txt
1927

2028
app.cfg keys:
2129
- name=Display name in the launcher
22-
- type=text | button
30+
- icon=Optionales Symbol/kurzer Text für AppL1-6
31+
- type=ui | text | button | calculator | radio
2332
- content=Filename for text apps (e.g., content.txt or book.txt)
33+
- layout=Filename für UI-Apps (z. B. layout.ui)
34+
- scrollable=true|false (für UI-Apps)
2435
- button_text=Button label (only for type=button)
2536
- button_message=Text displayed after clicking (only for type=button)
2637

38+
layout.ui format (eine Zeile pro Element):
39+
- type=label;x=40;y=40;w=720;h=40;text=Hallo
40+
- type=button;x=40;y=100;w=240;h=70;text=Start;bg=0x2095F6;fg=0xFFFFFF
41+
- type=textarea;x=40;y=190;w=420;h=140;text=Zeile1\\nZeile2
42+
- type=switch;x=500;y=120;value=true
43+
- type=checkbox;x=500;y=180;text=Option;value=false
44+
- type=panel;x=20;y=20;w=760;h=430;bg=0xF2F2F2
45+
2746
Then open the AppLauncher in fOS.
47+
48+
Webradio-Datei:
49+
- Pfad: `/music/webradio/webradio.txt`
50+
- Format pro Zeile: `Sender|URL`
51+
- Beispiel:
52+
`SomaFM Groove Salad|http://ice1.somafm.com/groovesalad-128-mp3`
53+
- Eine fertige Beispiel-Datei liegt hier:
54+
`example app/music/webradio/webradio.txt`
55+
56+
Audio-Dateien:
57+
- Lege lokale Audio-Dateien (`.mp3`, `.wav`, `.ogg`, `.aac`, `.m4a`) nach:
58+
`/music/files/`
2 KB
Binary file not shown.
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name=Button Demo
2-
type=button
3-
button_text=Drueck mich
4-
button_message=Hallo! Der Button funktioniert.
2+
icon=BTN
3+
type=ui
4+
layout=layout.ui
5+
scrollable=false
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Button Demo fuer die neue UI-Engine
2+
type=panel;x=20;y=20;w=760;h=430;bg=0xF4F6F8
3+
type=label;x=40;y=38;w=680;h=40;text=Button Demo (layout.ui);fg=0x111111
4+
type=button;x=40;y=100;w=280;h=90;text=Drueck mich;bg=0x2095F6;fg=0xFFFFFF
5+
type=label;x=40;y=220;w=700;h=90;text=Du kannst Position, Groesse und Inhalt\\npro Element frei in layout.ui setzen.;fg=0x333333
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name=Calculator
2+
icon=CALC
3+
type=calculator
4+
scrollable=false
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name=Calculator
2+
icon=CALC
3+
type=calculator
4+
scrollable=false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
name=E-Book Demo
2+
icon=BOOK
23
type=text
34
content=book.txt

0 commit comments

Comments
 (0)