Page 1 of 1

Pi pico reading image file from microSD card

Posted: Tue Jun 15, 2021 11:31 am
by darkthief
I am using an microSD card module with the pi pico. How do I read an image file(e.g .png file) from the microSD card? Are there any library that can be use?

Re: Pi pico reading image file from microSD card

Posted: Tue Jun 15, 2021 12:39 pm
by hippy
I would guess something like ...

Code: Select all

with open("/sd/filename.png", "rb") as f:
  imageBytes = f.read()