Menu
JAQForum Ver 19.10.27

Forum Index : Microcontroller and PC projects : LCD panel ILI9341 display bitmap and getting bmp onto the Pico

Posted: 07:23am
13 Sep 2025
Copy link to clipboard
58kk90
Regular Member

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
 
Posted: 08:02am
13 Sep 2025
Copy link to clipboard
TassyJim
Guru


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
 
Posted: 08:10am
13 Sep 2025
Copy link to clipboard
phil99
Guru


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
 
Posted: 12:33pm
13 Sep 2025
Copy link to clipboard
58kk90
Regular Member

@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.
 
Posted: 01:17pm
13 Sep 2025
Copy link to clipboard
58kk90
Regular Member

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
 
Posted: 01:34pm
13 Sep 2025
Copy link to clipboard
matherp
Guru

load png is rp2350 only. I've asked Geoff to update the manual.
 
Posted: 01:44pm
13 Sep 2025
Copy link to clipboard
phil99
Guru


  Quote  There appears to be a problem transferring files in the latest firmware.
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.
 
Posted: 02:46pm
13 Sep 2025
Copy link to clipboard
stanleyella
Guru


Load png "A:\testimage.png"  
 Error :  expected a string

load "testimage"
 


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025