Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : MMBasic V6.03.00 release candidates

   Page 5 of 26    
Posted: 02:50pm
08 May 2026
Copy link to clipboard
terekgabor
Senior Member

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
 
Posted: 03:18pm
08 May 2026
Copy link to clipboard
bfwolf
Senior Member

  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
 
Posted: 12:05pm
09 May 2026
Copy link to clipboard
twofingers
Guru


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
 
Posted: 12:32pm
09 May 2026
Copy link to clipboard
phil99
Guru


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
 
Posted: 01:04pm
09 May 2026
Copy link to clipboard
matherp
Guru

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

Shouldn't be, will fix
 
Posted: 01:08pm
09 May 2026
Copy link to clipboard
ville56
Guru

also strange in the same context:

> a="posi 123"
> print a
POSi 123
>
 
Posted: 01:46pm
09 May 2026
Copy link to clipboard
BarryH
Regular Member


also in Beta 6, LIST PINS is incorrect on 2350B DIL
GP22   29   OFF
GP23   41   OFF
GP26   31   OFF
 
Posted: 01:49pm
09 May 2026
Copy link to clipboard
matherp
Guru

Same bug - fixed, will be in the next RC
 
Posted: 04:52pm
10 May 2026
Copy link to clipboard
JanVolk
Guru

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.
 
Posted: 06:56pm
10 May 2026
Copy link to clipboard
toml_12953
Guru

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

Jan.


Where is the help file available?
 
Posted: 08:02pm
10 May 2026
Copy link to clipboard
JanVolk
Guru

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.
 
Posted: 01:32pm
11 May 2026
Copy link to clipboard
mozzie
Guru

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.
 
Posted: 02:58pm
11 May 2026
Copy link to clipboard
ville56
Guru

  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
 
Posted: 03:25pm
11 May 2026
Copy link to clipboard
terekgabor
Senior Member

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
 
Posted: 03:47pm
11 May 2026
Copy link to clipboard
matherp
Guru

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
 
Posted: 05:14pm
11 May 2026
Copy link to clipboard
terekgabor
Senior Member

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

G@bor
 
Posted: 07:10pm
11 May 2026
Copy link to clipboard
matherp
Guru

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
 
Posted: 06:16am
12 May 2026
Copy link to clipboard
terekgabor
Senior Member

Hello Peter!

Thanks! I will test and feed back!

G@bor
 
Posted: 06:47am
12 May 2026
Copy link to clipboard
Frank N. Furter
Guru

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
 
Posted: 07:43am
12 May 2026
Copy link to clipboard
matherp
Guru

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