![]() |
Forum Index : Microcontroller and PC projects : LCD panel ILI9341 display bitmap and getting bmp onto the Pico
Author | Message | ||||
58kk90 Regular Member ![]() Joined: 14/06/2023 Location: United KingdomPosts: 64 |
I have been playing around with an ILI9341 display and had fun drawing bargraphs, LED's and guages etc, but see it is possible to display a bitmap using the 'load image' commands, which I wish to try next. Here is where I am stuck, firstly, how do I upload a .jpg or .bmp to the Pico flash, is this possible as I don't have an SD card attached so cannot get the image from there. The bmp is a simple three colour 'logo' type of thing, only about 30k in size. The ideal would be to transfer it to the Pico and load it from there to the LCD display, I have seen reference to using Xmodem Receive, but how do you do it when the Pico is connected to MMCC? or is there an easier way? I tried to use MMCC and set the mode to 'File Manager' but couldn't see how to get the file from the PC side to the Pico. Anyone any ideas? Tony |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6301 |
Connect to your picomite run the "files" command to see how much spare room you have on drive A: (A: is in the flash) Open file manager The picomite drive A: will be on the right hand side and the PC on the left Navigate to the PC folder containing your BMP select the BMP click on the >>> button. Jim Edited 2025-09-13 18:03 by TassyJim VK7JH MMedit |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2707 |
There appears to be a problem transferring files in the latest firmware. Using PicoMite MMBasic RP2040 V6.01.00b11 I am unable to transfer with either MMCC or TeraTerm / Xmodem. Neither send nor receive. Edit Works fine on PicoMiteVGA MMBasic RP2350A Edition V6.01.00b6, both directions, MMCC and TeraTerm / Xmodem. Edited 2025-09-13 18:21 by phil99 |
||||
58kk90 Regular Member ![]() Joined: 14/06/2023 Location: United KingdomPosts: 64 |
@TassyJim, thank you i'd never have guess that was what the >>> symbol meant! Did exactly as you said, and the file is now on the Pico in the A: drive, now to load it to the LCD. @phil99 it worked for me using v6.00.02RC5, not sure if that is the latest or not. |
||||
58kk90 Regular Member ![]() Joined: 14/06/2023 Location: United KingdomPosts: 64 |
Ok, I can load a .bmp using load image, the file is a bit larger and thus takes a second or so to build up on the display, so I tried a .jpg using load jpg, as it is a smaller file, it loads quicker. Then I tried load png, as the png version is tiny, only 10k so ideally would load much quicker, I cannot get that to work, using the command load png "A:\testimage.png" which is identical to the command for .jpg and .bmp with the exception of the file suffix and the word after the 'load' command. I get an error message [10] Load png "A:\testimage.png" error : Invalid in a program If I type the command load png "A:\testimage.png" in the command windows in MMCC, then I get Load png "A:\testimage.png" Error : expected a string So I have no idea what I am doing wrong, I may have to settle for loading the .jpg file but it's just a bit too slow to load. Is it possible to load it to another 'screen' and then switch to it once it is loaded, similar to the GUI Page 2 etc? Tony |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10397 |
load png is rp2350 only. I've asked Geoff to update the manual. |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2707 |
OPTION SERIAL CONSOLE COM2,GP8,GP9,BOTH Was the problem. OPTION SERIAL CONSOLE DISABLE Fixed it. Is Xmodem meant to work with a serial console? If not perhaps a note in the manual. |
||||
stanleyella![]() Guru ![]() Joined: 25/06/2022 Location: United KingdomPosts: 2631 |
Load png "A:\testimage.png" Error : expected a string load "testimage" |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |