|
Forum Index : Microcontroller and PC projects : PicoMite 6.03.00 betas
| Author | Message | ||||
| homa Guru Joined: 05/11/2021 Location: GermanyPosts: 573 |
@Peter: I tested your mouse demo (https://www.thebackshed.com/forum/ViewTopic.php?TID=16657&PID=217248#217248#217248 ) using B4 on HDMIUSB. It’s having trouble recognising the different button press combinations on my system! Can you check that and confirm it? Matthias |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 611 |
This is great! Thanks! Is there any chance of getting an option on the SAVE command that saves a pre-compiled version rather than having to go through this every time we want to speed up a particular program? |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11269 |
OPTION BAUDRATE 460800 That isn't how it works, it compiles on the fly as it finds matching statements Will check tommorow Will think about it - running out of function keys/ctrl keys Edited 2026-05-02 07:54 by matherp |
||||
| homa Guru Joined: 05/11/2021 Location: GermanyPosts: 573 |
How about a command prompt (CLI) within FM? Kind of like the old NC style? ;-) I think it makes sense to have a bottom row for FX commands, just like in the editor, with the status bar above that and the prompt above that. Yes, that takes up two lines from the drive windows, but in my opinion, the added benefits make up for it. That would also enable other things besides CMM2 Load/Run, Xmodem, etc., WITHOUT needing additional keyboard shortcuts or Fx keys. It would also offer the option to start a program with line parameters, which is currently missing. As you can see, this would unlock a lot of potential. Matthias |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11269 |
Kind of like the old NC style? ;-) I think it makes sense to have a bottom row for FX commands, just like in the editor, with the status bar above that and the prompt above that. Yes, that takes up two lines from the drive windows, but in my opinion, the added benefits make up for it. That would also enable other things besides CMM2 Load/Run, Xmodem, etc., WITHOUT needing additional keyboard shortcuts or Fx keys. It would also offer the option to start a program with line parameters, which is currently missing. As you can see, this would unlock a lot of potential. Are you offering to do a complete re-write of FM which is what it would take? Just press ESC and you can enter anything you want at the command prompt |
||||
| homa Guru Joined: 05/11/2021 Location: GermanyPosts: 573 |
Hi Peter, Don’t be so sensitive! I didn’t mean to offend you. As I've said many times before, your work is incredible. I was just daydreaming for a moment and I'm just waiting for some really bad weather in the UK. If I really knew C, I’d get involved. I've tried several times already, though. I even have Kernighan and Ritchie's book lying around here somewhere. It's just a hobby. Professionally, I do something else. We'll see — maybe on my next holiday. Yes, I'll press ESC. With such an amazing overall impression, you forget that it's just a microcontroller. It's practically a fully-fledged mmBasic OS. Matthias |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11269 |
Fix for USB mouse interrupt - no version change PicoMiteRP2040V6.03.00B4.zip PicoMiteRP2350V6.03.00B4.zip |
||||
| homa Guru Joined: 05/11/2021 Location: GermanyPosts: 573 |
PicoMiteRP2040V6.03.00B4.zip PicoMiteRP2350V6.03.00B4.zip It works almost perfectly. I only manage to double-click very rarely. That’s where it still has a bit of a hiccup. I'm on my way now. |
||||
| ville56 Guru Joined: 08/06/2022 Location: AustriaPosts: 457 |
B4 seems to be about 5% faster compared to B2/B3. 73 de OE1HGA, Gerald |
||||
| karlelch Guru Joined: 30/10/2014 Location: GermanyPosts: 326 |
Looks like MMBasic is getting something approaching a JIT compiler … |
||||
| disco4now Guru Joined: 18/12/2014 Location: AustraliaPosts: 1117 |
Peter, The command line wrapping at the command prompt needs a fix. setterminal does not now add the extra 1 to to Option.Width probably since the editor was enhanced. The code in RED below needs to be deleted so the line wrap columns will match Option.Width and not Option.Width+1. Also as discussed here the pico is issuing <ESC>[?7l (turn OFF auto line wrap) at the startup of the editor, but apparently not issuing <ESC>[?7h (turn ON auto line wrap) upon exiting the editor. I can't see in the source where the <ESC>[?7l happens but if I issue Print <ESC>[?7h and adjust the terminal to 81 columns after exiting the editor the line wrapping at the console is all good again. void MIPS16 EditInputLine(void) { .... // Calculate line wrap positions if (Option.DISPLAY_CONSOLE && Option.Width <= SCREENWIDTH) { l2 = SCREENWIDTH + 1 - MMPromptPos; l3 = 2 * SCREENWIDTH + 2 - MMPromptPos; l4 = 3 * SCREENWIDTH + 3 - MMPromptPos; } else { l2 = Option.Width + 1 - MMPromptPos; l3 = 2 * Option.Width + 2 - MMPromptPos; l4 = 3 * Option.Width + 3 - MMPromptPos; } > option list PicoMiteHDMI MMBasic USB RP2350A Edition V6.03.00B4 OPTION SERIAL CONSOLE COM2,GP8,GP9 OPTION SYSTEM I2C GP20,GP21 OPTION FLASH SIZE 4194304 OPTION COLOURCODE ON OPTION KEYBOARD US OPTION RESOLUTION 640x480 @ 315000KHz OPTION DISPLAY 30, 53 OPTION SDCARD GP22, GP26, GP27, GP28 OPTION AUDIO GP10,GP11', ON PWM CHANNEL 5 OPTION RTC AUTO ENABLE OPTION MODBUFF ENABLE 192 OPTION PLATFORM HDMIUSB Gerry Edited 2026-05-04 17:39 by disco4now F4 H7FotSF4xGT |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11269 |
V6.03.00B5 PicoMiteRP2040V6.03.00B5.zip PicoMiteRP2350V6.03.00B5.zip Tweaks USB mouse doubleclick timings Fixes bug where the editor didn't re-enable autowrap in the serial terminal Fixes bug in multiline command handling (thanks Gerry) The stepper command now supports 4 axis by adding the A axis Stepper_Reference.pdf New editor function F12 will "beautify" your code: Summary: Beautify in the Editor (not PICOMITEMIN) walks the program line-by-line classifying each line's leading keyword to compute indentation (2 spaces per level). Recognised constructs: IF…THEN/ELSE/ELSEIF/ENDIF/END IF (multi-line only — single-line IF with anything after THEN doesn't open a block), FOR/NEXT, DO[...]/LOOP[...], SELECT CASE/CASE[/ELSE]/END SELECT, FUNCTION/END FUNCTION, SUB/END SUB, and TYPE/END TYPE (not PICOMITEMIN). F12 in the main editor switch now invokes it (no-op on PICOMITEMIN builds), marks the buffer changed, redraws, repositions cursor at top, and shows BEAUTIFIED. Footer help strings (≥55 cols) now advertise F12:Beautify/F12:Btfy. Blank lines are removed with the exception that a single blank line is inserted before each subroutine or function definition Notes / limitations to be aware of when using: Cursor returns to top of file after beautify comment-only lines indent at the current level. Labels and old-style line numbers at line start are not detected (the keyword test runs on the very first non-whitespace token). The classifier is purely first-token based — IF…:ENDIF written as a single line with : separators isn't detected as multi-line. |
||||
| disco4now Guru Joined: 18/12/2014 Location: AustraliaPosts: 1117 |
Peter, Any chance these B5 zips aren't the latest. The time stamp inside is 9.45am and BEAUTIFIED is there but the bug fixes don't seem to be. They should have been later 6.00pm or something. Gerry P.S. Time stamp thing might be wrong , forgot the TZ difference. But fix seem to be missing. Edited 2026-05-04 22:15 by disco4now F4 H7FotSF4xGT |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11269 |
Gerry Picomite.c was updated 09:25 and the build started 09:39. You should see the changed file on github which is what I built against. |
||||
| terekgabor Regular Member Joined: 02/01/2026 Location: HungaryPosts: 63 |
Hello Peter! Very good new beta! Thanks! Is beautify working with Picocalc also? If yes how, because no F12. G@bor |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11269 |
I'll add ctrl-A for F12 in the next beta |
||||
| terekgabor Regular Member Joined: 02/01/2026 Location: HungaryPosts: 63 |
Perfect Peter! I am pleased with your very fast responses and support! Really very much like to use this Basic! G@bor |
||||
| bfwolf Senior Member Joined: 03/01/2025 Location: GermanyPosts: 236 |
What is ctrl-B currently bound to? Would be easier to remember.. In German we have the adjective "adrett" as a synonym for "neat" or "beautiful", so for us Germans it would fit as a memory-hook for ctrl-A.. |
||||
| circuit Guru Joined: 10/01/2016 Location: United KingdomPosts: 305 |
The stepper command now supports 4 axis by adding the A axis Oh, this just gets better and better...and beyond! Time to buy another stepper motor and rotary chuck. |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 611 |
Really very much like to use this Basic! G@bor If you want to add Ctrl-A as beautify key before Peter has a chance to get to it, edit Editor.c and insert this line after 6753: // F12 - Beautify (re-indent block structures) case F12: case CTRLKEY('A'): //This line inserted editBeautify(edit_buff_size); It doesn't appear to work on line-numbered programs. On PicoCalc, if cursor is on first character in line, pressing the left cursor arrow acts just like F12 otherwise, it moves the cursor left as usual. Edited 2026-05-05 05:55 by toml_12953 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |