| Menu | JAQForum Ver 19.10.27 |
Forum Index : Microcontroller and PC projects : miniFM
I left one bug. When moving a whole directory, it ended in an error. This one fixes that. minifm_RC1.zip |
||||||
Hello! Some minor corrections: - after taking a screenshot with "*" the listing gets refreshed. - the viewer only starts with local screen - On LCD the small F-key bar left its colour I forgot to set back - tested on ILI9341.It is good usable and clear readable in Font 1 and for me, with glasses, in Font 7 as well The program can be used in all conditions: - save to disk or flash slot and run it - Add your own program on top of the code and call minifm() - delete or comment out the first 3 lines and save it as library. Call it from console or with your own application with: minifm or minifm(keypress_delay) It is able to run with or without Option explicit minifm_RC2.zip Edit: if you call it with your own program while using Option explicit you need to dim: option explicit dim fm_is_initialized miniFM() And your variable names must not conflict with the Globals minfm uses Edited 2025-10-21 20:05 by dddns |
||||||
Thanks for your nice version! With the previous versions, I had the problem that the display with GFXterm was faulty, but now it works correctly. After each call to miniFM, I even had to call "OPTION DISPLAY 24, 80" every time so that the internal editor would display correctly again. But: How can I start a program? When I select a program and press Return, it just displays it?!? Frank |
||||||
Hello Frank, please find under custom variables: Dim integer run_bas = 0 ' disable Enter to execute .bas file and set it to 1 If you are using non VGA/HDMI then you can set Option display as default (IIRC) Edited 2025-10-21 21:32 by dddns |
||||||
Thanks for your fast response! Now it works! Thank you very much! Frank |
||||||
Hi dddns, Not really happy with this RC2. I did not test RC1, but RC2 (for the RP2040-GEEK) does not execute a basic program when in focus and <ENTER> is pressed. The GEEK has a 240x135 display, and RC2 changes the console screen to similar resolution, and lists the basic program, it does not execute. Also, the earlier versions created a large terminal screen 100x50 or so, but the RC2 used 80x24. As such this is not a big problem, but it gives just less overview. On the MMCC, using RC2 and fast scrolling down the B drive (many files and folders) the GEEK locked up. ctrl_C could not stop miniFM. I have not been able to duplicate this. Could be a single incident. Volhout P.S. I do not want to squeeze the FM screen onto 240x135. Useless. Just give a decent terminal window on console. I know you want to make this as universal as possible, but the GEEK screen is simply not suited for a 2 pane file manager. Edited 2025-10-22 07:12 by Volhout |
||||||
Hello Volhout, how to make enter execute please find 2 posts above. Are you experiencing lockup with or without serial converter. I get lockups with 2350VGA but this is not specific to this application but also happens e.g. with internal editor and source > 40kb when I scroll down. Edited 2025-10-22 09:53 by dddns |
||||||
Hi dddns, The issue with the GEEK is that the display is so small (sugar cube size) that you use a big font to make it vissible. So your screen is effectively 10x6 characters. Got the issue with ENTER. Your miniFM has grown. Bloat? Volhout Edited 2025-10-22 16:57 by Volhout |
||||||
Good morning Volhout, just looked up the specs of your little cutie :) As I wrote in posts before, my goal was to get it work on 320x240+ That is with Font 1 40x20 characters which is enough that most is readable. But please do me a favor and quick test this with Font 7(40x16) and 8(60x22). I know that you need a magnifier but does it basically display correct? I don't think it's bloated but if you see potential to shorten it..let's do it |
||||||
Hi dddns, RC2 works fine with the ENTER=execute setting, and a suitible font for the GEEK. Also tested on the VGA platform, and it works satisfactory. I ony miss Javavi's matrix screensaver. I know this is the mini.. you took out everything you don't need. Tested on RC7 (RC6 showed a problem, that Peter fixed) Volhout Edited 2025-10-25 02:39 by Volhout |
||||||
Hello Volhout, the matrix sub caused endless traffic on tty, that was the main reason. The music player is not touched yet. Does it still work somehow? |
||||||
Hi dddns, The RC2 filemanager plays flac, mod, and wav files for the 2040 (VGA). I do not have a SD card with multiple files, to see if it automatically could play the whole directory. But it plays individual music files when selected with ENTER. There is one fault with playing picture (bmp) files when on 2040 VGA. It tries to select MODE 3, and the 2040 does not have mode 3. Only mode 1 and 2. Maybe you can fix that. I selected mode 2, and that worked fine for me. Better choose mode 2 than mode 1 (monochrome). Surprize: RC7 also shows JPG files. I assumed JPG was only for 2350 implemented. But the 2040 also views JPG in the miniFM. One thing I noticed. When running Linux (Putty) the ENTER key is chr$(10), in Win it is chr$(13). To make the enter key function as confirmation with COPY/MOVE/DELETE I added chr$(13) to the chr$(10) of the ENTER key. So at every ENTER key, buth chr$(10) and chr$(13) are send to the miniFM. This causes problems when you want to exit miniFM (exit does not work anymore, since at chr$(10) it closes the popup, and the chr$(13) is not processed. Maybe at every place where ENTER is needed to confirm, check either chr$(10) or chr$(13). Volhout Edited 2025-10-25 05:52 by Volhout |
||||||
The end of line can be any of LF (chr$(13)), CR (Chr$(10)) or both. Some terminals accept only one option, others can be configured. It makes sense when you think of a Teletype. LF feeds the paper up one line, CR moves the carriage back to the start. The RETURN key (as it was then) would trigger CR and often automatically LF so that the print head was in position ready for the next line. The concept of an ENTER key on a computer keyboard is newer and might have been the first step in "dumbing down" computers for the masses! |
||||||
Good Morning, I just tested Putty and cu and both give me chr$(13) for enter which is I think the only correct value.Enter in FM works for me. Please test with this what Putty and cu show: CLS Do a$=Inkey$ If a$ <> "" Then Print @(97,100) " ": Print @(100,100) Asc(a$) Loop sudo apt install cu /usr/bin/cu -l /dev/ttyUSB0 -s 115200 @Volhout: If you really need to change that for your installation then try it in: function cc_select() Edit2: I think I saw what you mean. In MMCC it is going wrong. I never tested with this but good to know, I will try to make it work for MMCC as well Edited 2025-10-25 20:16 by dddns |
||||||
| The Back Shed's forum code is written, and hosted, in Australia. |