minimalistic operating system

Give it a try, it costs you nothing !
Post Reply
RonS
Posts: 238
Joined: Thu Mar 02, 2023 10:15 pm
Location: germany
Has thanked: 111 times
Been thanked: 59 times

minimalistic operating system

Post by RonS »

hi at all and and especially to our system programmer CiccioCB -- I just had a thought... or an idea

how about if annex basic had a mini operating system, e.g. in ciccioCB's start screen integrated selection of basic.files to be started? you put your selection of finished programs in a certain folder e.g. "StartUp" annexbasic reads this folder and offers you a choice + a "none" - the whole thing should be an option in the "config" if you don't need it you turn it off - of course the whole thing has to be finished or you reboot the whole system ?? ..
just a thought so you can use the beautiful display modules more effectively ???

a nice sunny day Ron
Modules : 3xESP32-Cam MB (Chip"DM ESP32 S" ),AI-Thinker Audio Kit (ES8388), ESP32 Dev Kit with Display
User avatar
PeterN
Posts: 789
Joined: Mon Feb 08, 2021 7:56 pm
Location: Krefeld, Germany
Has thanked: 368 times
Been thanked: 442 times
Contact:

Re: minimalistic operating system

Post by PeterN »

Hi Ron,
If I understand correctly, you just want a dynamic list of BASIC programs - so that, at startup, you can see a selection of executable programs based on the contents of a subfolder.

Isn’t that a job for a short script that uses the `bas.load` command? The include command could also be a choice, but with other implications.

[Local Link Removed for Guests]
[Local Link Removed for Guests]

Or did I misunderstand your suggestion?
RonS
Posts: 238
Joined: Thu Mar 02, 2023 10:15 pm
Location: germany
Has thanked: 111 times
Been thanked: 59 times

Re: minimalistic operating system

Post by RonS »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Tue May 06, 2025 9:13 am Hi Ron,
If I understand correctly, you just want a dynamic list of BASIC programs - so that, at startup, you can see a selection of executable programs based on the contents of a subfolder.

Isn’t that a job for a short script that uses the `bas.load` command? The include command could also be a choice, but with other implications.

[Local Link Removed for Guests]
[Local Link Removed for Guests]

Or did I misunderstand your suggestion?
Yes, again a misunderstanding, I mean a selection of basic programs that are displayed without you using the editor, as a minimalist operating system, so to speak.

I haven't tried "basload" yet - I always thought you can't start a new basic program from a basic program
Modules : 3xESP32-Cam MB (Chip"DM ESP32 S" ),AI-Thinker Audio Kit (ES8388), ESP32 Dev Kit with Display
BeanieBots
Posts: 565
Joined: Tue Jun 21, 2022 2:17 pm
Location: South coast UK
Has thanked: 333 times
Been thanked: 184 times

Re: minimalistic operating system

Post by BeanieBots »

My thoughts were the same as those of PeterN.
It would only require a very small script to do what you describe.
Potentially, I think such a script would have an advantage over anything "built-in" because you would have full control over the list and appearance.
Give it a go and see if it does what you want.
User avatar
cicciocb
Site Admin
Posts: 3135
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 635 times
Been thanked: 2234 times
Contact:

Re: minimalistic operating system

Post by cicciocb »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Tue May 06, 2025 8:39 am hi at all and and especially to our system programmer CiccioCB -- I just had a thought... or an idea

how about if annex basic had a mini operating system, e.g. in ciccioCB's start screen integrated selection of basic.files to be started? you put your selection of finished programs in a certain folder e.g. "StartUp" annexbasic reads this folder and offers you a choice + a "none" - the whole thing should be an option in the "config" if you don't need it you turn it off - of course the whole thing has to be finished or you reboot the whole system ?? ..
just a thought so you can use the beautiful display modules more effectively ???

a nice sunny day Ron
This can be done simply with an initial program that runs when the module starts.
This program could just list all the files present in a given folder and then run it simply with bas.load.

Should not hard to do with LVGL :-)
User avatar
cicciocb
Site Admin
Posts: 3135
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 635 times
Been thanked: 2234 times
Contact:

Re: minimalistic operating system

Post by cicciocb »

For example, something like this:

Code: [Local Link Removed for Guests]

lvgl.init WHITE, 0x003a57
lvgl.set_theme 0x107090, 0xff9900, 14, 0
lvgl.clean

f$ = ""
d$ = FILE.DIR$("/*.bas")
While D$ <> ""
  if (f$ <> "") then
    f$ = f$ + chr$(10) + d$ 
  else
    f$ = d$
  end if
  'wlog d$
  d$ = FILE.DIR$
Wend

lvgl.set_flex_flow lvgl.screen, 0
LVGL.SET_FLEX_ALIGN lvgl.screen, 2,2,2

rol1 = lvgl.roller f$, 0, 0, 200,300
but1 = lvgl.button "RUN"
lvgl.add_event but1, 7, clickme


do
  lvgl.refresh
loop

clickme:
fname$ = "/" + lvgl.get_text$ rol1
wlog fname$
wlog bas.load fname$
return
image.png
You do not have the required permissions to view the files attached to this post.
Helmut_number_one
Posts: 206
Joined: Fri Dec 09, 2022 10:03 am
Location: Flensburg Deutschland
Has thanked: 152 times
Been thanked: 30 times

Re: minimalistic operating system

Post by Helmut_number_one »

Oh yes, that's a good example of LVGL.
More on that, at least I find it easier to navigate LVG.
User avatar
karlkloss
Posts: 327
Joined: Fri Aug 18, 2023 12:21 pm
Location: Local group
Has thanked: 55 times
Been thanked: 80 times

Re: minimalistic operating system

Post by karlkloss »

Someone please write a file manager in lvgl, that also includes a program launcher, a WiFi manager, and a mp3 and stream player.
And a web browser :lol:
RonS
Posts: 238
Joined: Thu Mar 02, 2023 10:15 pm
Location: germany
Has thanked: 111 times
Been thanked: 59 times

Re: minimalistic operating system

Post by RonS »

[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Tue May 06, 2025 5:52 pm For example, something like this:

This is also a way - :) I think tonight or tomorrow I will present you my idea -(it always takes me a long time until I am satisfied :) ) I will definitely do it without LVGL so that it also works on older screens.


a nice evening
Ron
Modules : 3xESP32-Cam MB (Chip"DM ESP32 S" ),AI-Thinker Audio Kit (ES8388), ESP32 Dev Kit with Display
RonS
Posts: 238
Joined: Thu Mar 02, 2023 10:15 pm
Location: germany
Has thanked: 111 times
Been thanked: 59 times

Re: minimalistic operating system

Post by RonS »

first a screenshot - I will present this with code and pictures in the projects forum - it will be even nicer with matching pictures to the buttons - it reminds me of the time with the "Amiga500" *smile -
The program only reads the files in the folder "StartUp"--> "Amiga"-like
image.png
it works - :D
if you set this program as "autoload" and the subroutines are modified so that they "return" you can easily call up the program you need at the moment via the screen - of course you can also integrate a radio program *LOL

The number of elements on the screen can be easily modified with number per row and number of rows for smaller screens

have a nice day
You do not have the required permissions to view the files attached to this post.
Modules : 3xESP32-Cam MB (Chip"DM ESP32 S" ),AI-Thinker Audio Kit (ES8388), ESP32 Dev Kit with Display
Post Reply