Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:40 12 May 2026 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 : MMBasic V6.03.00 release candidates

     Page 5 of 6    
Author Message
terekgabor
Regular Member

Joined: 02/01/2026
Location: Hungary
Posts: 73
Posted: 02:50pm 08 May 2026
Copy link to clipboard 
Print this post

Hello Peter!

This is more than we ever need really! Congrats!

One very small thing I found earlier.
If I use OPTION ANGLE DEGREES from command line the angles are still staying in radians. (And I think opposite.)
From a program when run it switches.

G@bor
 
bfwolf
Senior Member

Joined: 03/01/2025
Location: Germany
Posts: 242
Posted: 03:18pm 08 May 2026
Copy link to clipboard 
Print this post

  matherp said  (-5) is only needed to set MM.ANSWER to -5 without subtracting 5 from the current value


I’ve been thinking about how to simplify the process of entering a pair of brackets:
OPTION F8 "()"+chr$(130)


Pressing F8 would display a bracket pair, and chr$(130)=<cursor-left> would immediately position the cursor 1 back between ( and ). In insert mode, you could then simply continue typing, and the closing bracket would be moved further to the right.

This would reduce the amount of typing required, and the closing bracket wouldn't be missing later!

It would be fantastic, of course, to have a dedicated hotkey for this. I initially thought of <alt>+<(>, but the problem is that the opening bracket is located above the 8 key on German keyboards and above the 9 key on US keyboards.

Could be also very useful during writing programs in the editor!

Perhaps, you have a better idea?
Edited 2026-05-09 05:12 by bfwolf
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1741
Posted: 12:05pm 09 May 2026
Copy link to clipboard 
Print this post

PicoMiteHDMI MMBasic RP2350A Edition V6.03.00RC6
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD GR
OPTION RESOLUTION 640x480 @ 252000KHz
OPTION SDCARD GP5, GP2, GP3, GP4
OPTION PLATFORM FM200

@Peter:
Is the word "pos" now forbidden within a string?
CLS
 Print "  pos Offset "
 End

Result:
~(W) Offset

"pos" becomes "POS" in the program code.

Second question:
Is it intentional (or necessary) that "Option KEYBOARD repeat" can no longer be used within programs?

Regards
Michael
causality ≠ correlation ≠ coincidence
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 3191
Posted: 12:32pm 09 May 2026
Copy link to clipboard 
Print this post

Quite odd...
> ? "  pos Offset "
~(W) Offset
> s$="  pos Offset "
> ? s$
 ~(W) Offset
> ? left$(s$,5)
 ~(W
> ? left$(s$,4)
 ~(
> ? left$(s$,3)
 ~
> ? left$(s$,2)

? mid$(s$,3,1)
~
> ? mid$(s$,4,1)
(
> ? mid$(s$,5,1)
W
> ? mid$(s$,8,1)
O
>
> option list
PicoMite MMBasic RP2040 V6.03.00RC6

> s$="  po Offset "
> ? s$
 po Offset
>

Edited 2026-05-09 22:35 by phil99
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11312
Posted: 01:04pm 09 May 2026
Copy link to clipboard 
Print this post

  Quote  Is the word "pos" now forbidden within a string?

Shouldn't be, will fix
 
ville56
Guru

Joined: 08/06/2022
Location: Austria
Posts: 471
Posted: 01:08pm 09 May 2026
Copy link to clipboard 
Print this post

also strange in the same context:

> a="posi 123"
> print a
POSi 123
>
                                                                 
73 de OE1HGA, Gerald
 
BarryH

Newbie

Joined: 05/01/2025
Location: Australia
Posts: 38
Posted: 01:46pm 09 May 2026
Copy link to clipboard 
Print this post

also in Beta 6, LIST PINS is incorrect on 2350B DIL
GP22   29   OFF
GP23   41   OFF
GP26   31   OFF
BarryH
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11312
Posted: 01:49pm 09 May 2026
Copy link to clipboard 
Print this post

Same bug - fixed, will be in the next RC
 
JanVolk
Guru

Joined: 28/01/2023
Location: Netherlands
Posts: 349
Posted: 04:52pm 10 May 2026
Copy link to clipboard 
Print this post

Is the new command "CALC" for help?
Edit with MM edit.


~CALC
' Arithmetic operators:
^           'Exponentiation.       >  2 ^ 2   Enter 4
*           'Multiplication.       > 45 * 22  Enter 990
+           'Addition.             > 23 + 25  Enter 48
-           'Subtraction.          >  6 - 3   Enter 3
/           'Division into tenths. >  3 / 4   Enter 0.75
\           'Integer division.     > 25 \ 6   Enter 4
MOD         'Modulus.              > 15 MOD 4 Enter 3. Round numbers first!
SQR(number) 'Root of a number.     > SQR(2)   Enter 1.414213562
' Note:TeraTerm on Keypad / * - + and NumLock only work by holding down Shift?
'
' Logical operators and String:
<           'Less than.
>           'Greater than.
<<          'Shift left.             (x << y)
>>          'Shift right.            (x >> y) 'Means that the returned
            'value is the value of x shifted by Y bits to the right
            'whereas << means the same only shifted to the left.
<=          'Less than or equal to.
>=          'Greater than or equal to.
<>          'Inequality.
=           'Equality.
NOT         'Invert logical value on the right side. Not a = b or a <> b
INV         'Bits inversion of the value on the right side.(e.g. a = INV b)
AND         'Logical operator AND. (SERIES) > 1 AND 1 = 1 or 0 AND 1 = 0
OR          'Logical operator OR. (PARALLEL > 1 OR  1 = 1 or 1 OR  0 = 1
XOR         'Logical operator XOR.          > 1 XOR 1 = 0 or 0 XOR 1 = 0
+           'Combine two strings.


Jan.
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 618
Posted: 06:56pm 10 May 2026
Copy link to clipboard 
Print this post

  JanVolk said  Is the new command "CALC" for help?
Edit with MM edit.

Jan.


Where is the help file available?
 
JanVolk
Guru

Joined: 28/01/2023
Location: Netherlands
Posts: 349
Posted: 08:02pm 10 May 2026
Copy link to clipboard 
Print this post

toml_12953,

Because my English isn't very good, I use Google Translate a lot.
The help serves as a memory aid for the many commands and functions that have additional features and works faster than the manual.
I have also added some explanations for many commands and functions, but that is all in Dutch.
I have converted the CALC help to English for the question.
I have placed the list commands and list functions one below the other and filled in the additional commands using the manual with MM Edit4 or 5 or Notepad++, and can simply send this file to the microcontroller.
In Notepad++, you can color commands, functions, comments, and numbers so that it works exactly the same way as in EDIT.
I can then regularly add comments to the commands and functions from a central location. I have also taken into account the 79 characters per line and ensure that the help.txt does not become too large, which is already 68k. So if you want it, you will have to convert the comment yourself, or you can of course delete it too.

Jan.
 
mozzie
Guru

Joined: 15/06/2020
Location: Australia
Posts: 304
Posted: 01:32pm 11 May 2026
Copy link to clipboard 
Print this post

G'day Peter,
Many thanks for the immediate calculator function, using it already  

A couple of questions:
Is the Stepper system now in a state to be ready to test? hoping I might have a couple of days to do some testing all going well.

In Touch.c / Touch.h, there is a section for the GT911 cap touch driver, is this implemented? I am interested in trying a 5" screen with this chip.

Regards, Lyle.
 
ville56
Guru

Joined: 08/06/2022
Location: Austria
Posts: 471
Posted: 02:58pm 11 May 2026
Copy link to clipboard 
Print this post

  toml_12953 said  
  JanVolk said  Is the new command "CALC" for help?
Edit with MM edit.

Jan.


Where is the help file available?


I've translated Jan's file from his recent post from Dutch into English with the help of Google translate and some handwork and I think it was worth the while. It is for V6.02.00 but could serve well as a basis for further extension.

Thank you Jan!!


help.txt-V6.02.00-en.zip


Gerald
                                                                 
73 de OE1HGA, Gerald
 
terekgabor
Regular Member

Joined: 02/01/2026
Location: Hungary
Posts: 73
Posted: 03:25pm 11 May 2026
Copy link to clipboard 
Print this post

Peter!

I have a problem. It also occured in previous versions with Pico 2W and now Pimoroni Pico Plus 2W also:

Sometimes (I think every 10-15 ocassions after run program) the following is occuring:

I open a TCP client with WEB open TCP client command and send a TCP request. And the system is extremely slowing down.
I don’t know if the port open or the request causes this.
The only way to solve it to restart Picocalc with power button.

Webmite versions, Picocalc.

Thanks!
G@bor
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11312
Posted: 03:47pm 11 May 2026
Copy link to clipboard 
Print this post

Lyle
Stepper code is fully working AFAIK.
G@bor
Please explain how I am supposed to fix something so ill defined. If you post a program that demonstrates the problem I might have a chance but without that....
Edited 2026-05-12 01:48 by matherp
 
terekgabor
Regular Member

Joined: 02/01/2026
Location: Hungary
Posts: 73
Posted: 05:14pm 11 May 2026
Copy link to clipboard 
Print this post

Okay Peter! That is right I will investigate deeply and try to make a test program for you.

G@bor
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11312
Posted: 07:10pm 11 May 2026
Copy link to clipboard 
Print this post

G@bor

I've found a couple of places where normal web type errors could cause memory corruption by trying to raise MMbasic errors in callbacks. Try this version and let me know if it makes any difference. You may see normal MMbasic errors where previously the code might have locked up.


PicoMite.zip
 
terekgabor
Regular Member

Joined: 02/01/2026
Location: Hungary
Posts: 73
Posted: 06:16am 12 May 2026
Copy link to clipboard 
Print this post

Hello Peter!

Thanks! I will test and feed back!

G@bor
 
Frank N. Furter
Guru

Joined: 28/05/2012
Location: Germany
Posts: 1089
Posted: 06:47am 12 May 2026
Copy link to clipboard 
Print this post

A program that was working just a short while ago no longer works with version PicoMiteRP2350V6.03.00RC6 on PicoCalc.

I won't be able to send the exact error message until tonight - I think it was this line that caused the error:
sx1(i)=rnd()*W: sy1(i)=rnd()*H
This line is located in a SUB, where the variables were defined locally:
W=320:H=320
local sx1(32),sy1(32),sx2(24),sy2(24)

I won't be able to give you any more details until tonight, since I don't have the PicoCalc with me right now...

Frank
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11312
Posted: 07:43am 12 May 2026
Copy link to clipboard 
Print this post

Experiment that went wrong, Use rnd without the brackets and I'll fix in the next RC
 
     Page 5 of 6    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026