Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 18:22 07 Jun 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 : Help files and how best to use them

Author Message
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 299
Posted: 12:46pm 21 Apr 2025
Copy link to clipboard 
Print this post

For any furthurer discusions (and sharing), this was moved from RC thread.

  matherp said  Please could you start a new thread for discussing Help files and how best to use the new (fixed) functionality


  matherp said  V6.00.02RC16 is available on

https://geoffg.net/Downloads/picomite/PicoMite_Beta.zip

Implements HELP [search_pattern$] command. See above.

HELP without a parameter just outputs the text:
"Enter help and the name of the command or function
Use * for multicharacter wildcard or ? for single character wildcard"

This looks for a file on the A: drive named "help.txt"
This must be formatted as follows:
~searchable_string
text line - recommend this is the command syntax e.g. COLOUR fore [, back]
text line
....
text line
~next_searchable_string
text line
....
etc.

There can be one or many text lines for each searchable_string. It is highly recommended that text lines do not exceed 80 characters in length

in the "search_pattern" use * for multicharacter wildcard or ? for single character wildcard

The command will output all sections (between the matching searchable string and the next searchable string) where the search_pattern matches the searchable_string


help.txt templates

Only commands

  electricat said  Some errors corrected
Added better PEEK, POKE, FORMAT$ explanationes etc
(Changes may be seen with any text comparing tool)

Anyone wishes test it, can download help.txt here
help.txt.zip

I think it has now all universal notes for public use. And All other help notes would be by personal 'taste' to add .


Commands and functions with full desriptions.

  electricat said  
There is trade off.
Not that big ~390-430 Kb file to start with, but only commands and functions left.

full_Commands_and_Functions-full-_no_separators_help.zip

full_Commands_and_Functions-full-help.zip


Edited 2025-04-21 22:47 by electricat
My MMBasic 'sand box'
 
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 299
Posted: 08:53am 24 Apr 2025
Copy link to clipboard 
Print this post

  matherp said  I've change the filespec slightly. Filename is "help.txt" - lowercase. Everything should be on different lines.

  Quote  
~COLOUR
COLOUR fore [, back]
Sets the default colour for commands (PRINT, etc)
that display on the on the attached LCD panel.
'fore' is the foreground colour, 'back' is the background colour.
The background is optional and if not specified will default to black.
~COLOUR MAP
COLOUR MAP inarray%(),outarray%() [,colourmap%()]
This command generates RGB888 colours in outarray% from colour codes (0-15)


- I made help.txt files accordingly.
- I found also, I missed and not added in previous uploads
TRIANGLE SAVE / RESTORE
- Added text files as in official help manual (no pictures, tried use ASCII if possible). Means , now there is almost full official help  +3D commands from CMM2
- Tried to remove unnecessary duplicatings
- Moved important BETA notes to external file. All beta changes can be listed in one go, entering '*' as keywoard.
> HELP ***
Sure I might be missed something. Tried to follow and documenting beta thread at my best.

So now, there is three groups of files inside archive.
-Beta changes (long only/verbose)
-commands and functions only (long/verbose and short)
-full help as per official manual (long/verbose and short)

Short versions still contains explanations near commands I felt might be important/hard to rememeber.


Help_system_Picomites.zip


If you see any bad problems needed to fix, please post. I will fix at free time.

P.S. Personally I use different format of this help.
~ COMM/FN (or TOPIC or OPT or MM) ; args ; optionals ; theme_keyword(s) ; *  
I believe it`s more friendly for new users.

  ville56 said  
I had problems with your file "long__nosep_official_help.txt" as there are lots of NUL chars in it. Had to remove them all, now it is usable. Didn't check the other files, but they may have the same problem.


I updated files, should be OK now
Edited 2025-04-25 02:10 by electricat
My MMBasic 'sand box'
 
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 299
Posted: 07:25pm 24 Apr 2025
Copy link to clipboard 
Print this post

Dirty and simple three help.txt files switcher.
Copy choosen help files to -> A:
Rename them -> long_help.txt ; short_help.txt ; beta_help.txt
Add -> OPTION F6 "sw_help"+chr$(13)
Code below  -> LIBRARY SAVE


Sub sw_help
sw_cdrw$=MM.Info(DRIVE)
sw_cdir$=Cwd$
Drive "A:"
Chdir "A:"
sw_long_h=MM.Info(exists file "long_help.txt")
sw_short_h=MM.Info(exists file "short_help.txt")
sw_beta_h=MM.Info(exists file "beta_help.txt")

If sw_long_h= 1 And  sw_short_h=1 Then
Rename "help.txt" As "beta_help.txt"
Rename "short_help.txt" As "help.txt"
Print "SHORT HELP version online"
End If
If sw_long_h= 1 And  sw_beta_h=1 Then
Rename "help.txt" As "short_help.txt"
Rename "long_help.txt" As "help.txt"
Print "LONG HELP version online"
End If
If sw_short_h= 1 And  sw_beta_h=1 Then
Rename "help.txt" As "long_help.txt"
Rename "beta_help.txt" As "help.txt"
Print "BETA HELP version online"
End If
Drive sw_cdrw$
Chdir sw_cdir$
End Sub

My MMBasic 'sand box'
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 426
Posted: 08:11am 16 May 2025
Copy link to clipboard 
Print this post

Hello electricat!

I would like to bring this up once more and I would like to say many thanks for the enormous work! Sorry that I was so busy and didn't pay enough attention till now.

@Mani hinted me yesterday and I searched for it, which was not so easy.
Then I tried to get an overview and this wasn't so easy as well for a newcomer to this issue because everything said is very technical and not easy to understand (for a newcomer).

This help system is very nice and of cause many thanks @matherp as well!

Please describe it once more in easy words what needs to be done to install it and how to use it.

And after looking at it I would please you to further develop it. For my taste the formatting could be nicer and more clear to read. The line length differs too much.

Nice work!
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 426
Posted: 09:03am 16 May 2025
Copy link to clipboard 
Print this post

Another thought: look for help.txt in a: and/or b: if present
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 426
Posted: 09:20am 16 May 2025
Copy link to clipboard 
Print this post

And a last one:
> help list*
LIST [fname$] or LIST ALL [fname$]
List a program on the console. LIST on its own will list the program with a pause at every screen
full.
LIST ALL will list the program without pauses.
This is useful if you wish to transfer the program to a terminal emulator on a PC that has the
ability to capture its input stream to a file.
If the optional 'fname$' is specified then that file on the SD card will be listed.

LIST COMMANDS or LIST FUNCTIONS
Lists all valid commands or functions


Maybe it is an idea to have a stable and a development branch of this file which then could be used to update the manual for the next stable?
Edited 2025-05-16 19:21 by dddns
 
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 299
Posted: 05:24am 17 May 2025
Copy link to clipboard 
Print this post

  Quote  For my taste the formatting could be nicer and more clear to read. The line length differs too much.
This file was part of experimenal help system I made before 'inbuilt' help system. This is why formating is as is. Lines are splitted becouse they can not exceed 255 limit too.

  Quote  Another thought: look for help.txt in a: and/or b: if present

Yes, but if Peter is interested/have time or wish to make this at firmware side (or multiple users would ask for this, so Peter would know it is not wasting of time?   ).
In my experimental help system, I made before inbuilt HELP was introduced, there was such functionality. Program looked for help files at B: and if not found in A: ind if not found then user was informed there is no ready help file.

  Quote  Maybe it is an idea to have a stable and a development branch of this file
I am interested in this system, and will do my best to include changes on next stable release. Will post here. It depends on my 'free time deposit' and 'real life' time consumes so there is no any qaurantee I can make it happen 'next day'
My MMBasic 'sand box'
 
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 426
Posted: 07:44am 17 May 2025
Copy link to clipboard 
Print this post

Hello electricat,

I didn't know the situation how much you are still involved. I think this is important but was discussed so less. Anyway, thanks for your precious work!
  matherp said  Please could you start a new thread for discussing Help files and how best to use the new (fixed) functionality
 
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