![]() |
Forum Index : Microcontroller and PC projects : Start .BAS scripts without keyboard
Author | Message | ||||
Vampire05 Regular Member ![]() Joined: 06/12/2020 Location: GermanyPosts: 88 |
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 KingdomPosts: 7938 |
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: AustraliaPosts: 6283 |
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: GermanyPosts: 88 |
Ok, thats a simple and nice solution. Thank you Mick and thank you Jim ;-) Edited 2022-01-01 05:26 by Vampire05 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |