|
Forum Index : Microcontroller and PC projects : PicoMite Firmware Release Version 6.02.01
| Author | Message | ||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 602 |
I type this in: OPTION LCDPANEL NOCONSOLE OPTION LCDPANEL CONSOLE 1,RGB(green),RGB(BLACK) and still NOSCROLL appears in the OPTION LIST. It looks like the default for PicoCalc is NOSCROLL but I can't change it back to anything else. Edited 2026-04-03 04:10 by toml_12953 |
||||
| Fede Newbie Joined: 09/03/2026 Location: SpainPosts: 23 |
In case it helps... I've copied this from the manual: 'On displays where the framebuffer cannot be read, the firmware will automatically set the NOSCROLL option.' Best regards. |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3156 |
That might be something Peter can fix. If you want to make sure the PicoCalc display can be read from put an image on the screen and BLIT a portion to another location. If the result is a blank rectangle reading doesn't work. Or try this command-line colour counter. It reads the colours back from a pixel. > clear : dim a$(2)=(" Blues"," Greens"," Reds") : dim integer b, c, n > for b=0 to 2:n=0:for c=0 to 255:pixel 9,9,c<<b*8:if pixel(9,9)=c<<b*8 then:inc n:endif:next:?n;a$(b):next 32 Blues 64 Greens 32 Reds Zeros would indicate it can't be read from. Edited 2026-04-03 07:31 by phil99 |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 602 |
Thanks for that. This is weird. I get 2 Blues 2 Greens 2 Reds Nowhere near what you get. What does that mean? I thought it should be a binary condition - either it can read from a framebuffer or it can't. |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3156 |
Perhaps the PicoCalc is using a RGB111 monochrome colour scheme . My test was on a regular Pico LCD with a ST7796S which uses RGB565. An ILI9488 would have returned 64, 64, 64 as it is RGB666. Edit. Values greater than 1 at least show it can be read from so scrolling should be possible. All 1s would indicate just one returned colour matches what was sent to the screen, so it was really getting nothing back. You could also try the BLIT test. > GUI TEST LCDPANEL '<Ctrl-C> > BLIT READ #1, 1, 1, 150, 150 > BLIT WRITE #1, 150, 90 If the top left square gets copied faithfully then reading was successful . Edited 2026-04-03 08:49 by phil99 |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 602 |
My test was on a regular Pico LCD with a ST7796S which uses RGB565. An ILI9488 would have returned 64, 64, 64 as it is RGB666. Edit. Values greater than 1 at least show it can be read from so scrolling should be possible. All 1s would indicate just one returned colour matches what was sent to the screen, so it was really getting nothing back. You could also try the BLIT test. > GUI TEST LCDPANEL '<Ctrl-C> > BLIT READ #1, 1, 1, 150, 150 > BLIT WRITE #1, 150, 90 If the top left square gets copied faithfully then reading was successful . The reading was successful. All the colors are correct in the new square. I wonder why the OPTION command doesn't allow me to get rid of the NOSCROLL parameter, then. |
||||
| Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 8769 |
Is the display SPI or parallel? If it's SPI then scrolling isn't recommended anyway. It's regarded as being too slow to use sensibly. That's why NOSCROLL was devised, so that SPI displays could be used for the console. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11215 |
Lots of speculation and we don't even know what toml is running on or what version of the firmware. For the avoidance of doubt. The PicoCalc firmware built into MMBasic uses the ST7365P driver and writes in RGB565. The PicoCalc I tested on works perfectly with BLIT so reading from the framebuffer works. The display is in portatrait mode and uses H/W scrolling. I haven't got a PicoCalc available and have no idea what the OPTION list reports but NOSCROLL is irrelevant as H/W scrolling doesn't require to read from the framebuffer. To configure a PicoCalc correctly nuke the flash and load the latest firmware. It will then automatically configure itself corectly - nothing else should then be changed. Edited 2026-04-03 18:26 by matherp |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 602 |
For the avoidance of doubt. The PicoCalc firmware built into MMBasic uses the ST7365P driver and writes in RGB565. The PicoCalc I tested on works perfectly with BLIT so reading from the framebuffer works. The display is in portatrait mode and uses H/W scrolling. I haven't got a PicoCalc available and have no idea what the OPTION list reports but NOSCROLL is irrelevant as H/W scrolling doesn't require to read from the framebuffer. To configure a PicoCalc correctly nuke the flash and load the latest firmware. It will then automatically configure itself corectly - nothing else should then be changed. I figured since I posted into the V6.02.01 final thread everyone would know that that's what I'm running. Here's my OPTION LIST when I first load the firmware: PicoMite MMBasic RP2350B V6.02.01 OPTION SERIAL CONSOLE COM1,GP0,GP1,BOTH OPTION LCD SPI GP10,GP11,GP12 OPTION SYSTEM I2C GP6,GP7, SLOW OPTION BAUDRATE 19200 OPTION FLASH SIZE 16777216 OPTION LIBRARY_FLASH_SIZE 52000 OPTION COLOURCODE ON OPTION CONTINUATION LINES ON OPTION CASE UPPER OPTION TAB 8 OPTION DEFAULT COLOURS GREEN, BLACK OPTION KEYBOARD PICOCALC OPTION PICO OFF OPTION CPUSPEED (KHz) 384000 OPTION LCDPANEL CONSOLE ,, FF00 OPTION DISPLAY 26, 40 OPTION LCDPANEL ST7365P, PORTRAIT,GP14,GP15,GP13 OPTION BACKLIGHT LCD 64 OPTION SDCARD GP17, GP18, GP19, GP16 OPTION AUDIO GP26,GP27', ON PWM CHANNEL 5 OPTION RTC AUTO ENABLE OPTION MODBUFF ENABLE 192 OPTION PLATFORM PicoCalc OPTION PSRAM PIN GP47 If I try to change the LCDPANEL CONSOLE line at all, NOSCROLL is added and nothing I can do will turn it off. Edited 2026-04-03 21:44 by toml_12953 Footnote added 2026-04-03 22:03 by toml_12953 The reason I want to change the LCDPANEL CONSOLE line is because I want to change the default foreground color to amber - RGB(255,191,0) and I can't do that via the OPTION DEFAULT COLOURS line. That line restricts me to the color names, none of which is amber. If OPTION DEFAULT COLOURS allowed RGB values, then I wouldn't need to mess with the OPTION LCDPANEL CONSOLE line. |
||||
| mozzie Senior Member Joined: 15/06/2020 Location: AustraliaPosts: 278 |
G'day Peter, Just for reference, can you please detail how the PicoMite firmware detects it is running in a PicoCalc? Regards, Lyle. |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11215 |
The PicoCalc is a fixed config and isn't supposed to be changed. The code does not attempt to fully integrate the PicoCalc config with normal functionality. For the 4 variants of the firmware that could be used on the PicoCalc iff no relevant options are set, as part of intialisation, the firmware tries to read the Pico battery level. If that returns without an I2C error then the PicoCalc is configured |
||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 1080 |
The reason I want to change the LCDPANEL CONSOLE line is because I want to change the default foreground color to amber - RGB(255,191,0) and I can't do that via the OPTION DEFAULT COLOURS line. That line restricts me to the color names, none of which is amber. If OPTION DEFAULT COLOURS allowed RGB values, then I wouldn't need to mess with the OPTION LCDPANEL CONSOLE line. Try "OPTION LCDPANEL CONSOLE 1,16760576,0" - that worked on my PicoCalc! Frank |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 602 |
The reason I want to change the LCDPANEL CONSOLE line is because I want to change the default foreground color to amber - RGB(255,191,0) and I can't do that via the OPTION DEFAULT COLOURS line. That line restricts me to the color names, none of which is amber. If OPTION DEFAULT COLOURS allowed RGB values, then I wouldn't need to mess with the OPTION LCDPANEL CONSOLE line. Try "OPTION LCDPANEL CONSOLE 1,16760576,0" - that worked on my PicoCalc! Frank After you did that, did you have NOSCROLL appear at the end of the line? On mine whenever I change OPTION LCDPANEL, I get NOSCROLL added, which I don't want. The PicoCalc LCD is fast enough to scroll the display rather than clearing it after every screen. |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 602 |
For the avoidance of doubt. The PicoCalc firmware built into MMBasic uses the ST7365P driver and writes in RGB565. The PicoCalc I tested on works perfectly with BLIT so reading from the framebuffer works. The display is in portatrait mode and uses H/W scrolling. I haven't got a PicoCalc available and have no idea what the OPTION list reports but NOSCROLL is irrelevant as H/W scrolling doesn't require to read from the framebuffer. To configure a PicoCalc correctly nuke the flash and load the latest firmware. It will then automatically configure itself corectly - nothing else should then be changed. I found a fix. In MM_Misc.c, line 5425 doesn't check for the display type ST7365P, which is what the PicoCalc has. I added a test for that and, voila! NOSCROLL is no longer added automatically. This is the change I made: if (!(Option.DISPLAY_TYPE == ST7365P || Option.DISPLAY_TYPE == ST7789B || Option.DISPLAY_TYPE == ILI9488 || Option.DISPLAY_TYPE == ST7796SP || Option.DISPLAY_TYPE == ST7796S || Option.DISPLAY_TYPE == ILI9488P || Option.DISPLAY_TYPE == ILI9341 || Option.DISPLAY_TYPE >= VGADISPLAY)) Option.NoScroll = 1; |
||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 1080 |
Yes, it's the same for me. But so far, I haven't noticed any difference in how the display behaves. Frank |
||||
| phil99 Guru Joined: 11/02/2018 Location: AustraliaPosts: 3156 |
That matches what Peter wrote. |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 602 |
If you mean NOSCROLL doesn't change the way the display operates, then that's not right. Without NOSCROLL, info just scrolls off the top of the screen. With NOSCROLL, the screen clears every time the screen is full. In any case, I have solved the problem for users of the ST7365P by adding it to the list of displays exempt from automatic NOSCROLL. With my change the user can add NOSCROLL manually, if desired. It is never automatically added to the end of the OPTION LCDPANEL CONSOLE line, however. |
||||
| Frank N. Furter Guru Joined: 28/05/2012 Location: GermanyPosts: 1080 |
You're right! With OPTION LIST, the first part—which includes the version number and some of the settings—now flashes briefly, and the rest is displayed permanently. That wasn't the case before I ran the OPTION LCDPANEL CONSOLE command. Frank |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 602 |
You're right! With OPTION LIST, the first part—which includes the version number and some of the settings—now flashes briefly, and the rest is displayed permanently. That wasn't the case before I ran the OPTION LCDPANEL CONSOLE command. Frank If you download the source and make my fix then the system won't automatically add NOSCROLL. You can still add it yourself, though. Edited 2026-04-05 08:56 by toml_12953 |
||||
| terekgabor Regular Member Joined: 02/01/2026 Location: HungaryPosts: 50 |
Now it’s time to learn how to compile picomite files. Is there any instructions somewhere how to do it? Thx, G@bor |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |