Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:03 09 May 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 : File Manager for PicoMite

     Page 17 of 17    
Author Message
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1526
Posted: 09:24am 20 Apr 2025
Copy link to clipboard 
Print this post

  javavi said  @twofingers
+ Copying and moving folders with files
+ Launches when there are a large number of files, but displays only the maximum file list size set.

Hi Vadim,
copying directories works fine, thanks! You're on the right track!

Unfortunately, I'm having trouble opening directories that contain more than RMax files. Have you checked this?
[87] FList$(RQt+1)=""
Error : Index out of bounds


I found a silly bug in my last file that affects the display of the scroll bars when there are only a small number of files.
FM02046-k.zip

Kind regards
Michael
causality ≠ correlation ≠ coincidence
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 436
Posted: 10:47am 20 Apr 2025
Copy link to clipboard 
Print this post

  twofingers said  Unfortunately, I'm having trouble opening directories that contain more than RMax files. Have you checked this?
[87] FList$(RQt+1)=""
Error : Index out of bounds

Hi Michael,
I found this problem and seemed to have fixed it and reloaded the archive for downloading in my post, please check again by downloading the archive, maybe I will need to re-upload it..
Edited 2025-04-20 20:52 by javavi
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1526
Posted: 11:12am 20 Apr 2025
Copy link to clipboard 
Print this post

  javavi said  I found this problem and seemed to have fixed it and reloaded the archive for downloading in my post, please check again by downloading the archive ...

Yes, it works as it should! Great!
I'd consider whether the user should get a notification that the list isn't completely displayed.

By the way, when I switch A: to B: (left), I get a blue left panel.

I just noticed that when I come from a subdirectory, the file cursor is correctly positioned on the subdirectory. Very good!

One more question:
What keyboard layout is actually used in Ukraine?

Michael
causality ≠ correlation ≠ coincidence
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 436
Posted: 12:37pm 20 Apr 2025
Copy link to clipboard 
Print this post

  twofingers said  By the way, when I switch A: to B: (left), I get a blue left panel.
I just noticed that when I come from a subdirectory, the file cursor is correctly positioned on the subdirectory. Very good!
One more question:
What keyboard layout is actually used in Ukraine?



The blue color after switching disks also seemed to have been corrected, I don't remember now, I need to check again! But that will be a little later, now I'm a little torn and out of shape.
Edited 2025-04-20 22:45 by javavi
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1526
Posted: 01:45pm 20 Apr 2025
Copy link to clipboard 
Print this post

  javavi said  The blue color after switching disks also seemed to have been corrected, I don't remember now, I need to check again! But that will be a little later, now I'm a little torn and out of shape.

Hi Vadim,
the (blue panel) error has been corrected in the latest FM150. I hadn't checked it again, sorry.
Thanks for the look at the keyboard layout. I think everything must be three times as complicated for you (language, layout, fonts).
Which PicoMite keyboard setting are you using? US?

No rush to answer!

Michael
Edited 2025-04-20 23:46 by twofingers
causality ≠ correlation ≠ coincidence
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1526
Posted: 12:30pm 21 Apr 2025
Copy link to clipboard 
Print this post

Hi Vadim,
BTW.(also as a reminder to myself)
  Quote  "Good design is as little design as possible."
– Dieter Rams

  Quote  "Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away."
– Antoine de Saint-Exupéry

I think this applies to design in general. But also to programmed code and even to lifestyle.

... And I'm sure I'll get it thrown in my face at some point.  

In this new version, the page up/down mechanism has been changed. I like it better this way.
Also — apart from internal changes — the scroll bars are colored only for the active panel.

FM02049.zip

Kind regards
Michael
causality ≠ correlation ≠ coincidence
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 436
Posted: 06:47am 27 Apr 2025
Copy link to clipboard 
Print this post

File Manager v1.51 VGA/HDMI +MMCC
Now the music plays continuously if several music files are selected on the panel. Something like a custom playlist, you can mark and unmark on the go, start from the desired place, but not go to other folders))
FM151.zip
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1526
Posted: 12:26pm 28 Apr 2025
Copy link to clipboard 
Print this post

Hi Vadim,
this is just a correction. Due to a bug, I added "-1" twice.

FM02052.zip

  javavi said  ... Something like a custom playlist, you can mark and unmark on the go, start from the desired place, but not go to other folders))


Just a thought – I'm not currently doing anything with music or sounds on the PicoMite – wouldn't it make more sense to play entire directories?

Kind regards
Michael
Edited 2025-04-29 03:52 by twofingers
causality ≠ correlation ≠ coincidence
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1526
Posted: 01:07pm 06 May 2025
Copy link to clipboard 
Print this post

Hi Vadim,

there are only a few changes for users in this version. Perhaps the file cursor movement is a bit smoother. This version displays the help screen once for new users upon startup and saves it in the Platform option.
FM02060.zip

In the main program, I've reduced the use of "TILES" to a single use. The version jump to 02060 is intended to reflect the internal changes.

I've also decided to re-sort the file list after sorting, like you do with "ArrangeByIndex." This improves interchangeability between our versions and reduces complexity to further simplify the code.

My version ("ArByIdx") is unfortunately five times slower, but it doesn't destroy the sort index. I need it for sorting the selected files. To save some memory, I use a bit-flag array of five integers. The routines for this are:
'* Set of flag-routines
test_flags
End

Sub Clr_Flag(F() As integer,Nr)
 F(Nr\64)=F(Nr\64)And Not(1 <<(Nr Mod 64))
End Sub

Sub set_Flag(F() As integer,Nr)
F(Nr\64)=F(Nr\64)Or(1 <<(Nr Mod 64))
End Sub

Sub Toggle_Flag(F() As integer,Nr)
F(Nr\64)=F(Nr\64)Xor(1 <<(Nr Mod 64))
End Sub

Function Get_Flag(F() As integer,Nr)
Get_Flag=(F(Nr\64)>>Nr Mod 64)And 1
End Function


Sub test_flags
Local integer NumberOfFlags=200
Local integer fl((NumberOfFlags\64)+1)
Print "hello"
Toggle_Flag(fl(), 134)
Print "134";Get_Flag(fl(),134)
Toggle_Flag(fl(), 134)
Print "134";Get_Flag(fl(),134)
Toggle_Flag(fl(), 134)
Print "134";Get_Flag(fl(),134)
Clr_Flag(fl(), 134)
Print "134";Get_Flag(fl(),134)
set_Flag(fl(), 134)
Print "134";Get_Flag(fl(),134)

Print
Toggle_Flag(fl(), 133)
Print "133";Get_Flag(fl(),133)
Toggle_Flag(fl(), 133)
Print "133";Get_Flag(fl(),133)
Toggle_Flag(fl(), 133)
Print "133";Get_Flag(fl(),133)
set_Flag(fl(), 130)
set_Flag(fl(), 0)
set_Flag(fl(), 199)
Print
Print "130";Get_Flag(fl(),130)
Print
For i = 0 To NumberOfFlags-1
 Print Get_Flag(fl(),i);
Next
Print
Print
Timer = 0
For i = 0 To 10000

Next
tml=Timer/10
Print " "tml " uSec for an empty loop"

Timer = 0
For i = 0 To 10000
 set_Flag(fl(), 130)
Next
tm=Timer
Print Tm/10 " uSec"

Print
Print MM.Info(cpuspeed)
'RP2350
End Sub

They are universal and consume almost no memory. But they aren't very fast. Set_Flag() takes about 70 uSec (RP2350). This means setting 1,000 flags takes 70ms. Of course, it's much faster if all flags are to be set or cleared at once.

My idea for a future version is a file viewer with a search function and a function for replacing strings within programs.

Kind regards
Michael
Edited 2025-05-07 18:42 by twofingers
causality ≠ correlation ≠ coincidence
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4853
Posted: 06:39am 09 May 2025
Copy link to clipboard 
Print this post

delete
Edited 2025-05-09 16:45 by Volhout
PicomiteVGA PETSCII ROBOTS
 
     Page 17 of 17    
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