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 KingdomPosts: 151 |
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: NetherlandsPosts: 145 |
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 StatesPosts: 3152 |
> 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: AustraliaPosts: 2140 |
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 KingdomPosts: 6808 |
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: AustraliaPosts: 2140 |
"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: NetherlandsPosts: 145 |
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 KingdomPosts: 151 |
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 KingdomPosts: 3813 |
? is just a short name for PRINT. John |
||||
Print this page |