|
Forum Index : Microcontroller and PC projects : PicoMite V7.00.00b8 and release candidates
| Author | Message | ||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 12172 |
Not aware of any change, can you connect a usb-uart to gp8/gp9 to see what is going on? |
||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 1185 |
Unfortunately, not right now. I'll have to make an adapter first... Frank |
||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 1185 |
Since when have /* and */ been prohibited in a library? I updated my PioCalc and wanted to use my existing library, which had been working fine until now. I couldn't load it into the editor using LOAD, so I had to load it using EDIT [filename] to make changes... Frank |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 12172 |
The Picomite has always stripped comments when saving to the library but previously forgot multi-line comments. Now it strips those as well to save space. The code is also more rigorous in imposing the multi-line comment rules as per the manual description as previously things like /*do without a space could cause runtime errors. Now they are caught when the code is tokenised. Edited 2026-10-26 04:54 by matherp |
||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 1185 |
Okay, but does it make sense that you can't even load a file like that with LOAD to edit it? Frank |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 12172 |
If you allow it then the checking has to be at runtime with performance overhead. You can edit it with EDIT fname$ save the file and then load it. |
||||
| Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 9328 |
I've always kept my original library file because I want the comments in it. In that respect there's no point in editing a library file. Edit the original, save it (important!) then create a new library from it. Mick Zilog Inside! nascom.info for Nascom & Gemini |
||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 1185 |
That's how I did it. I used /* and */ to comment out a section of code that I didn't necessarily want to delete... Frank |
||||
| Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 6252 |
Peter, I am not sure this item has surfaced before. But is there a random generator built in MMBasic that is deterministic (repeatable)? I know I can write one myself (i.e. use MATH CRC), so if there is none, don't worry. I am looking at javavi's latest program that generates mazes randomly. And for forensic research I would like to be able to repeat a certain maze (from a seed). But the RND(n) and MATH RANDOMIZE n do not provide me a repeatable RND sequence. Volhout PicomiteVGA PETSCII ROBOTS |
||||
| ville56 Guru Joined: 08/06/2022 Location: AustriaPosts: 665 |
Peter, thanks for the milliseconds correction to WEB NTP and RTC GETTIME But, the TIME$ command still does not reset the milliseconds to 0 as stated in the manual. This would be very helpful in case one wants to sync the internal clock from an external signal like a DCF77 input pin. You then set the time at the start of the first seconds pulse at a new minute implicitly resetting the milliseconds counter to 0. Edited 2026-10-26 19:23 by ville56 73 de OE1HGA, Gerald |
||||
| ville56 Guru Joined: 08/06/2022 Location: AustriaPosts: 665 |
sorry Peter, forget the post above ... must have accidentially reflashed RC3 yesterday evening, was too late and my brain was already shut off, so it seems ... have to test with RC5 now mea culpa, mea maxima culpa Gerald Edited 2026-10-26 20:02 by ville56 73 de OE1HGA, Gerald |
||||
| Bleep Guru Joined: 09/01/2022 Location: United KingdomPosts: 875 |
Hi Peter, Is it correct that the OPTION RESET HDMIUSBI2S does not include the OPTION PSRAM PIN GP47, V7.00.00RC5 I was trying to test Matthias Backgammon and it wouldn't run, then I realised the PSRAM hadn't been activated, now runs ok. Regards Kevin. Edited 2026-10-26 23:13 by Bleep |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 12172 |
Yes, Only the PC3 build makes an assumption about what it is being run on |
||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 1185 |
I figured out the problem with the RP2040-PICO-PC. I manually set the HDMI pins to OPTION HDMI PINS 1, 3, 7, 5 and called the command. Once I had a picture on the screen, I was able to call OPTION RESET OLIMEXUSB. Now a message appears saying that the flash will be completely erased, which you have to confirm with “Y” - that message wasn't there before, and I couldn't see it! Now everything works... Thanks! Frank |
||||
| homa Guru Joined: 05/11/2021 Location: GermanyPosts: 753 |
> option list PicoMitePC3 MMBasic USB RP2350B Edition V7.00.00RC6 OPTION SERIAL CONSOLE COM2,GP8,GP9 OPTION SYSTEM I2C GP20,GP21 OPTION FLASH SIZE 16777216 OPTION COLOURCODE ON OPTION KEYBOARD GR, 0, 1, 200, 75 OPTION HEARTBEAT OFF OPTION PICO OFF OPTION RESOLUTION 640x480 @ 315000KHz OPTION HDMI PINS 1, 3, 5, 7 OPTION WIFI behofam, *****************, Pico3, DE OPTION TELNET CONSOLE ON OPTION SDCARD GP33, GP30, GP31, GP28 OPTION KEYBOARD REPEAT 200,75 OPTION AUDIO I2S GP10,GP22', ON PWM CHANNEL 11 OPTION RTC AUTO ENABLE OPTION COUNT GP34,GP35,GP36,GP37 OPTION COMPILE ON OPTION PRINTSCREEN FORMAT PNG OPTION PLATFORM PICO COMPUTER 3 OPTION PSRAM PIN GP47 > RC6: PNG from Print Screen can't be viewed in the file manager Firmware: PicoMiteHDMI MMBasic USB RP2350A Edition V7.00.00RC6 OPTION PRINTSCREEN FORMAT PNG Print Screen (also from a running program with OPTION PRINTSCREEN ON) saves SCREEN_yyyymmdd_hhmmss.PNG in the SD root - fine. But opening that file in the file manager (FM) gives: Error: Invalid format, must be RGBA8888 or indexed PNG The same file copied to the PC (XMODEM) opens without problems, with the correct colours. So the file itself is OK - it seems the PNG viewer in FM doesn't accept the format that SAVE PNG / Print Screen writes (probably 24-bit RGB without alpha). It would be great if FM could show the PNG files the firmware writes itself. Thanks for the new Print Screen feature - it even captures in the middle of an animation, perfect for manual screenshots! Matthias |
||||
| flip Senior Member Joined: 18/07/2016 Location: AustraliaPosts: 137 |
Peter, Just to round off, since writing I have had no more problems with touch (other than the normal extra disconnect and reconnect at startup which is not an issue) - so please disregard. Thanks too for the Screen-Print .png and the selective area which will help all of us with efficient posts on this forum. One very minor request with the FRAME subsystem (I think the limitations of TILE subsystem should rightly prevent smaller fonts, but) it would be nice if it could allow for other (higher-resolution) fonts - as long as the box-drawing characters are catered for...e.g. I tried FONT 4 (10x16) - which has those chars - but when using FRAME the system automatically reverted to FONT 1 (8x12) Regards Phil |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 12172 |
The tile system only accepts multiples of 8 pixels wide. This is fundamental to getting the required performance in the display driver |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 12172 |
V7.00.00RC6 is now available on https://github.com/UKTailwind/PicoMite/releases/tag/PicoMite-V7.00.00RC6 PicoMite V7.00.00RC6: what has changed since RC5 RC6 is RC5 with the reports since then answered, plus SAVE PNG and smaller SAVE IMAGE files. MM.VER reads 7.000056. The full release notes are on GitHub: https://github.com/UKTailwind/PicoMite/releases/tag/PicoMite-V7.00.00RC6 Before you upgrade from RC5: the PicoMiteHDMI and the PicoMiteRP2350VGA reset their options and clear their flash slots and program memory at the first boot (their firmware grew 16 KB for SAVE PNG). Save your options first with OPTION DISK SAVE "B:/myoptions.txt" and put them back afterwards with OPTION DISK LOAD. On a board with 4 MB of flash their A: drive is reformatted too. Every other build keeps everything. Coming from the RC6 of 26 October, every build keeps everything. New • SAVE PNG file$ [, x, y, w, h] saves the screen, or part of it, as a true colour PNG, typically ten to fifty times smaller than a BMP (RP2350 builds). • OPTION PRINTSCREEN FORMAT PNG makes Print Screen and Ctrl-\ save PNG files; OPTION PRINTSCREEN FORMAT BMP goes back. • LOAD PNG, SPRITE LOADPNG and the file manager's viewer open 24-bit RGB and greyscale PNGs, including the ones SAVE PNG writes. Before, only RGBA and palette PNGs could be opened. Changed • SAVE IMAGE saves the smallest exact BMP: 4-bit or 8-bit with RLE compression when the picture has 16 or 256 colours or fewer. A MODE 3 test screen went from 154 KB to 20 KB. SAVE COMPRESSED IMAGE is now the same command, on any display and at any width. • Screenshots are named from the date and time, SCREEN_yyyymmdd_hhmmss, instead of the first free number. • STEPPER (RP2350): arcs blend with the moves around them in G64 mode, the stepper works alongside I2S audio, and the corner speeds, rounding, homing pulses, input pull-ups, start-up levels and E-STOP handling are corrected. • TIME$ = 0 now also zeroes the milliseconds, so the clock can be lined up with a GPS one-pulse-per-second output. • This one can stop an existing program: a SUB called with its arguments in brackets and more text after the closing bracket, such as MySub (a), b, now gives "Unexpected text" instead of silently dropping the rest. Write MySub(a, b). Fixed • Touch monitors with the WCH controller (USB ID 27C0:0859, also in the Corsair Xeneon Edge and the Verbatim HD14T) connected but gave no touches. They now work. For a touch screen, MM.INFO(USB n) now gives 133, as the manual says, and MM.INFO(USB VID n) and MM.INFO(USB PID n) give its IDs instead of 0. • VGA builds: the screen could come up garbled at power-on, in bands of colour, until a MODE command. • HDMI MODE 5: SAVE IMAGE, SAVE PNG, Print Screen and PIXEL() give the colours shown on screen, MAP included. • Ctrl-\ can now be typed on USB, Bluetooth and I2C keyboards and on the PicoCalc's. • SAVE IMAGE and Print Screen keep USB and audio running while they save, so a long save no longer drops a USB touch controller or stalls the music. • Interrupts: ◦ A PAUSE, a GUI CLICK or a GUI pop-up whose interrupt ended in an error no longer upsets the next run. ◦ ON KEY, MOUSE INTERRUPT, GAMEPAD INTERRUPT and the Wii interrupts no longer fire at once for a press made before they were armed. ◦ After a program that used ON KEY k, key k can be typed at the command prompt again. • The GPS reads 0 while it has no fix, instead of the last fix's values. • DRAW3D (issues 132 to 136), MM.INFO$(COMPILE) and USB drive (C:) disk errors are corrected. • WiFi and Bluetooth builds: the radio's SPI clock stays at or below 40 MHz. Please keep the reports coming, especially from existing programs. Edited 2026-10-27 22:56 by matherp |
||||
| ville56 Guru Joined: 08/06/2022 Location: AustriaPosts: 665 |
I cannot find a full documetation for the TOUCH() function. There is some in the advanced graphics manual in the text but e.g. TOUCH(HOLD), TOUCH(TAP) ... are IMHO missing or didn't I just find the proper mnual ... Gerald 73 de OE1HGA, Gerald |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 12172 |
Manual page 248 |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |