pimoroni-pico/micropython/examples/inky_frame/image_gallery
John Bintz f495fb8b70
Add SPI import to SD card upload example
As the code exists now, you won't be able to mount the SD card due to the missing import.
2024-06-14 06:08:11 -04:00
..
600x448
640x400
800x480
README.md Add SPI import to SD card upload example 2024-06-14 06:08:11 -04:00
image_gallery.py Inky Frame: update image_gallery.py 2023-03-16 17:10:16 +00:00
image_gallery_sd.py update images, add new random image example 2023-03-13 16:56:28 +00:00
image_gallery_sd_random.py update images, add new random image example 2023-03-13 16:56:28 +00:00

README.md

Image Gallery

Some example programs to display images on your Inky Frame, plus sample images in different sizes.

Use: 640x400 for Inky Frame 4.0" 600x448 for Inky Frame 5.7" 800x480 for Inky Frame 7.3"

If you want to use your own images, they will need to be the correct dimensions for your screen and saved without progressive encoding.

Image transfer instructions

In all cases the images will need to be copied to the root of your Pico W or SD card.

Copy the images to your Pico W using Thonny.

Pop an SD card into your computer to copy the images across.

Alternatively, you can transfer them using Thonny, but you will have to mount the SD card using the REPL first:

import os
import sdcard
from machine import Pin, SPI
sd_spi = SPI(0, sck=Pin(18, Pin.OUT), mosi=Pin(19, Pin.OUT), miso=Pin(16, Pin.OUT))
sd = sdcard.SDCard(sd_spi, Pin(22))
os.mount(sd, "/sd")

Image Credits

Sample images from the Webb Space Telescope (credit: NASA, ESA, CSA, and STScI). Find more gorgeous images and info @ https://webbtelescope.org/

... and Raspberry Pi <3