Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 03:30 29 Nov 2024 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 : MM.INFO?

Author Message
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 06:18pm 25 Apr 2023
Copy link to clipboard 
Print this post

Can someone give me the several examples of MM.INFO as nothing seems to return anything.

The manual said... MM.INFO(drive) etc... I have tried nearly every iteration ( I say nearly as clearly the right one eludes me..).

Its my first go at V 5 07 06 on a pico and I was trying to obtain fee space left on B:

Cheers
Ian
I'd give my left arm to be ambidextrous
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 145
Posted: 07:23pm 25 Apr 2023
Copy link to clipboard 
Print this post

Ian,

Possibly a syntax error?
So MM.INFO is a function ? or use Print after > to get what back, ? MM.INFO$(drive) returns A: or B:.
The B: drive is SD card only and A: is Flash drive.

Jan
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3152
Posted: 08:08pm 25 Apr 2023
Copy link to clipboard 
Print this post

> option list
PicoMiteWEB MMBasic Version 5.07.07RC3
OPTION AUTORUN ON
OPTION COLOURCODE ON
OPTION DISPLAY 40, 110
OPTION WIFI Omnibus-Av2_EXT2, *********
OPTION TCP SERVER PORT 80, 6000
OPTION TELNET CONSOLE ON
> ?mm.info(disk size)
618496
> ?MM.INFO(VERSION)
5.0707
>

PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2140
Posted: 09:02pm 25 Apr 2023
Copy link to clipboard 
Print this post

This comes up often so I guess the next manual needs to explain that it will only return a value to the console with PRINT.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6808
Posted: 09:54pm 25 Apr 2023
Copy link to clipboard 
Print this post

I think all the MM.INFO things are read-only variables. It makes sense that you can't see them in the console without a PRINT command. However, they can also be read within a program - and not necessarily printed. The manual does, in fact, refer to them as "Predefined read only variables".
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2140
Posted: 10:02pm 25 Apr 2023
Copy link to clipboard 
Print this post

"The manual does, in fact, refer to them as "Predefined read only variables"."

Yes, yet some don't realize that means at the console you need Print.
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 145
Posted: 12:21am 26 Apr 2023
Copy link to clipboard 
Print this post

Correct MM.INFO( is a function and PEEK, Time$, Date$ are also functions (Read) so we get something back from the microcontroller. Try List Functions for an overview.
And ?, Print, Poke is a command to the microcontroller (Write). Try List Commands for an overview. And after > first comes a command to tell the microcontroller what to do.

Jan
 
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 06:59am 26 Apr 2023
Copy link to clipboard 
Print this post

Thanks everyone.
I didn't use the ? to print  
> ?MM.INFO yields "0"
> MM.INFO yields "unknown command"

So ? is the actual command..  Now I know.
I'd give my left arm to be ambidextrous
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3812
Posted: 07:21am 26 Apr 2023
Copy link to clipboard 
Print this post

? is just a short name for PRINT.

John
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024