Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:51 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Start .BAS scripts without keyboard

Author Message
Vampire05
Regular Member

Joined: 06/12/2020
Location: Germany
Posts: 88
Posted: 02:27pm 30 Dec 2021
Copy link to clipboard 
Print this post

Hi guys,
I want to put an armmite and a touch screen in one case. I would like to be able to see and run the BAS files on the system.
My first idea was to emulate a few keys (ESC, Curser, F-keys,...) via GPIO or PS/2 so I can navigate in the fileexplorer. But how do I start the command "files" and how do I simulate CTRL-C.

Or is there a file explorer with touch support? Then I can save the keys completely.

What is the best way to do this?

Best regards
Artem
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7938
Posted: 03:20pm 31 Dec 2021
Copy link to clipboard 
Print this post

I'm not sure what the Armmite F4 is capable of now. The PicoMite supports CHAIN to allow you to pass control to programs stored in flash, but that might be just on that platform.

Simply using FILES [fspec$] will let you display the files in the current directory of the SDcard and RUN file$ will run a file. I don't think you can run the file manager from inside MMBasic though.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 07:13pm 31 Dec 2021
Copy link to clipboard 
Print this post

Yes, you could write a program to do what you are asking.
I did it for the CMM2.
The F4 would be slightly different but doable.

You could start with my CMM2 version and remove the unnecessary bits:
https://www.c-com.com.au/mmhelp/filemanager.htm

Jim
VK7JH
MMedit
 
Vampire05
Regular Member

Joined: 06/12/2020
Location: Germany
Posts: 88
Posted: 07:25pm 31 Dec 2021
Copy link to clipboard 
Print this post

Ok, thats a simple and nice solution. Thank you Mick and thank you Jim ;-)
Edited 2022-01-01 05:26 by Vampire05
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025