|
Forum Index : Microcontroller and PC projects : MMBasic V6.03.00 release candidates
| Author | Message | ||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 647 |
Since the LCD backlight isn't controlled by a GP pin on PicoCalc, I had to change line 229 to read: Option Backlight LCD CtrlVal(sb_bright) Of course, the change remains after the program ends so if you want the backlight to be unaffected by the program after it ends, you can save the current value when the program starts and restore it when the program ends. |
||||
| mozzie Guru Joined: 15/06/2020 Location: AustraliaPosts: 370 |
G'day Peter, As Phil said, this will keep many playing until late... This is very close to perfect, HDMI Touchscreen with GUI controls is 99% working, bit() is working again and pos stays as pos. During the process of writing a long and complicated response regarding the problem you have already updated a fix for, now I have read it and its time for bed. Thanks again for making all this possible. Regards, Lyle. |
||||
| terekgabor Regular Member Joined: 02/01/2026 Location: HungaryPosts: 90 |
Is it possible somehow to get actual values of LCD/KBD backlight with PicoCalc? |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11435 |
Yes, it is what you set it to. Or in other words: NO. MMBasic can't spoon feed everything. If you set the backlight to 30 then it is 30. It isn't reasonable for the interpreter to include more and more code and get bigger and bigger to tell the user what they have themselves done. |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3268 |
When ever you manually set the backlight follow with VAR SAVE. Make the last line of the program VAR RESTORE. You could also put VAR RESTORE etc. in MM.STARTUP and save to the library to start with your preferred level. To ensure you never have a blank screen check if the restored value is too low and set a default. |
||||
| JanVolk Guru Joined: 28/01/2023 Location: NetherlandsPosts: 366 |
Not working properly after WebMite MMBasic RP2350A Edition V6.03.00RC10. WebMite MMBasic RP2350A Edition V6.03.00RC10 Copyright 2011-2026 Geoff Graham Copyright 2016-2026 Peter Mather > memory Program: 0K ( 0%) Program (0 lines) 192K (100%) Free Saved Variables: 16K (100%) Free RAM: 0K ( 0%) 0 Variables 0K ( 0%) General 240K (100%) Free > WebMite MMBasic RP2350A Edition V6.03.00RC11 Copyright 2011-2026 Geoff Graham Copyright 2016-2026 Peter Mather [CYW43] error: hdr mismatch 0300 ^ feff [CYW43] error: hdr mismatch 0300 ^ feff [CYW43] error: hdr mismatch 0300 ^ feff [CYW43] error: hdr mismatch 0300 ^ feff [CYW43] error: hdr mismatch 0300 ^ feff [CYW43] error: hdr mismatch 0300 ^ feff [CYW43] error: hdr mismatch 0300 ^ feff [CYW43] error: hdr mismatch 0d1c ^ fff7 [CYW43] do_ioctl(2, 263, 1008): timeout [CYW43] STALL(0;1-1): timeout [CYW43] CLM load failed WebMite MMBasic RP2350A Edition V6.03.00RC12 Copyright 2011-2026 Geoff Graham Copyright 2016-2026 Peter Mather [CYW43] error: hdr mismatch 0300 ^ feff [CYW43] error: hdr mismatch 0300 ^ feff [CYW43] error: hdr mismatch 0300 ^ feff [CYW43] error: hdr mismatch 0300 ^ feff [CYW43] error: hdr mismatch 0300 ^ feff [CYW43] error: hdr mismatch 0300 ^ feff [CYW43] error: hdr mismatch 0300 ^ feff [CYW43] error: hdr mismatch 0d1c ^ fff7 [CYW43] do_ioctl(2, 263, 1008): timeout [CYW43] STALL(0;1-1): timeout Jan. |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 647 |
pointer trail shouldn't happen if the screen framebuffer is being read properly. Does PicoCalc properly wire the screen MISO and is it properly configured in the options? To change the backlight you would need to change he code to match whatever the correct Basic calls are to do it. I'm testing on a SSD1963_5_BUFF and everything works as expected. I don't know if you did something specifically to fix it but now the Web version works with both WiFi and PSRAM active and there's no trail left by the mouse cursor in the GUI demo. Thanks for a great job! |
||||
| mozzie Guru Joined: 15/06/2020 Location: AustraliaPosts: 370 |
G'day, This may be obvious to those with better MMbasic skills but posting it here in case anyone else spends hours trying to figure it out. The setup is a 5" HDMI-Touch monitor being fed HDMI video from a PicoMiteHDMIUSB with a Pico-Zero connected to the XPT2046 touch panel sending co-ordinates back via the USB-CDC connection. The Touch co-ordinates are recieved and an interrupt sub (RX_INT) parses the X/Y data and sets CLICK X,Y this is where the fun started. It appears that if you set CLICK or CLICK X,Y in an interrupt sub (RX_INT) it doesn't fire the TOUCH routine on return. Strangely the GUI elements react as if touched but do not perform there function. Next step, set CLICK DOWN in the RX_INT sub, this fires the first GUI element but no others. Add CLICK UP at the end of the TOUCH_INT sub, this works for normal GUI elements but not the NUMBERBOX KEYPAD, only first key touched. Add CLICK UP at the start of RX_INT now makes everything work but you can tell its a cludge, putting CLICK UP anywhere else or timing it doesn't seem to work. The final solution was to set a flag in RX_INT and do CLICK X,Y in the main program loop and it all just works, although possibly only with the updated V6.03.00RC12 A question, can you set GUI CURSOR X,Y and call the TOUCH INTERRUPT SUB directly or will that cause headaches? Regards, Lyle. |
||||
| mozzie Guru Joined: 15/06/2020 Location: AustraliaPosts: 370 |
G'day Peter, A minor niggle, the GUI CONTROLS option is not shown in OPTION LIST on PicoMiteHDMIUSBV6.03.00RC12, keep forgetting to set it on update. Regards, Lyle. |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11435 |
Will fix, works for PicoMite, just not VGA/HDMI This can't work. I will include code so that any attempt to use gui click/up/down from inside an interrupt routine generates an error and document accordingly If you really really need to queue an interrupt from within an interrupt routine you could configure an I/O pin with gui click pin and loop another pin to it then set the other pin in the interrupt. This will then queue the interrupt. Haven't got a RP2350A web board to test with but works perfectly on a rp2350B. Will be mid next week before I can test on a Pico2-W Edited 2026-05-25 17:30 by matherp |
||||
| homa Guru Joined: 05/11/2021 Location: GermanyPosts: 623 |
Yes, it is what you set it to. Or in other words: NO. MMBasic can't spoon feed everything. If you set the backlight to 30 then it is 30. It isn't reasonable for the interpreter to include more and more code and get bigger and bigger to tell the user what they have themselves done. In principle, that's correct, but unfortunately, with the PicoCalc, the user can adjust the brightness—and thus the value—using the keyboard. That's why it's definitely worth reading this value within the program. Up until now (<RC9), I wasn't able to dim the screen (turn off the backlight) when I set the value to 0. Is that possible now? |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11435 |
No idea, for the PicoCalc I just incorporated the routines from Ernst and borrowed a unit while I got it all working. As to the behaviour of the stm32 and what it can or can't do - I've no idea. You should assume that the PicoCalc integration is fixed and final although it will benefit from ongoing normal firmware changes. |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 647 |
Up until now (<RC9), I wasn't able to dim the screen (turn off the backlight) when I set the value to 0. Is that possible now? Why not try it and see? Option Backlight LCD 0 only makes the backlight very dim. It doesn't turn it off. Edited 2026-05-25 22:03 by toml_12953 |
||||
| homa Guru Joined: 05/11/2021 Location: GermanyPosts: 623 |
PicoMiteRP2040V6.03.00RC12.zip PicoMiteRP2350V6.03.00RC12.zip ... > option list PicoMiteHDMI MMBasic USB RP2350A Edition V6.03.00RC12 OPTION SERIAL CONSOLE COM2,GP8,GP9 OPTION FLASH SIZE 4194304 OPTION COLOURCODE ON OPTION KEYBOARD US OPTION RESOLUTION 640x480 @ 252000KHz > option reset hdmiusb PicoMiteHDMI MMBasic USB RP2350A Edition V6.03.00RC12e - are you sure (Y/N) ? y 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 24, 80 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 Formatting the A: drive > US USB Keyboard Connected on channel 1 > USB Mouse Connected on channel 2 > There's something wrong with this version. There's no picture! My monitor is showing H = 00 kHz and V = 00 Hz!?! Is anyone else having this problem on the HDMIUSB reference board? I've also run "flash_nuke.uf2" Matthias |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11435 |
Will look at it Wednesday next week, can't test til then - sorry. In the meantime use a previous version |
||||
| homa Guru Joined: 05/11/2021 Location: GermanyPosts: 623 |
PicoMiteRP2040V6.03.00RC12.zip PicoMiteRP2350V6.03.00RC12.zip ... ... There's something wrong with this version. There's no picture! My monitor is showing H = 00 kHz and V = 00 Hz!?! Is anyone else having this problem on the HDMIUSB reference board? I've also run "flash_nuke.uf2" Matthias SORRY – I’ve got too many cables on my desk, and I actually picked up the wrong one. **Shame on me**. It’s cost me an hour of my time, though.Yes, I did, and then I wondered why there was no picture on the one that had last been working ![]() Matthias |
||||
| homa Guru Joined: 05/11/2021 Location: GermanyPosts: 623 |
My break went on too long. But unfortunately, work called. Now, in RC12, when running the GUI demo on the HDMIUSB reference board, I get the following error message: > run [82] GUI Caption c_head, "Pump Control", 10, 0 Error : No memory allocated for GUI controls > What do I need to change here? OPTION GUI CONTROLS 50 ![]() Edited 2026-05-27 02:30 by homa |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11435 |
option gui controls 50 is correct. Doesn't show on option list at the moment - will do soon. |
||||
| ville56 Guru Joined: 08/06/2022 Location: AustriaPosts: 508 |
the firmware `Backlight` command. On firmware without a controllable backlight, `Backlight` is a no-op. not quite ... in version PicoMiteHDMI MMBasic USB RP2350B Edition V6.03.00RC12 this throws an error: [219] Backlight CtrlVal(sb_bright) Error : Unknown command an "on error skip" in the line before cures this but the backlight command is not a no-op if not applicable. 73 de OE1HGA, Gerald |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 647 |
Is OPTION HEARTBEAT OFF supposed to be permanent? I use it and the heartbeat is off until I do a power cycle. Then it's back on again. This is on a PicoCalc using the Pimoroni Pico Plus 2 W and Web version of RC12. |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |