2022-07-25 12:42:21 +00:00
|
|
|
# Image Gallery <!-- omit in toc -->
|
|
|
|
|
|
|
|
- [Image transfer instructions](#image-transfer-instructions)
|
2023-03-13 16:56:28 +00:00
|
|
|
- [image\_gallery.py](#image_gallerypy)
|
|
|
|
- [image\_gallery\_sd.py / image\_gallery\_sd\_random.py](#image_gallery_sdpy--image_gallery_sd_randompy)
|
2022-07-25 12:42:21 +00:00
|
|
|
- [Image Credits](#image-credits)
|
|
|
|
|
2023-03-13 16:56:28 +00:00
|
|
|
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"
|
|
|
|
|
2023-03-16 17:13:23 +00:00
|
|
|
If you want to use your own images, they will need to be the correct dimensions for your screen and saved *without progressive encoding*.
|
2023-03-13 16:56:28 +00:00
|
|
|
|
2022-07-25 12:42:21 +00:00
|
|
|
## Image transfer instructions
|
|
|
|
|
2023-03-13 16:56:28 +00:00
|
|
|
In all cases the images will need to be copied to the root of your Pico W or SD card.
|
|
|
|
|
2022-07-25 12:42:21 +00:00
|
|
|
### image_gallery.py
|
|
|
|
|
|
|
|
Copy the images to your Pico W using Thonny.
|
|
|
|
|
2023-03-13 16:56:28 +00:00
|
|
|
### image_gallery_sd.py / image_gallery_sd_random.py
|
2022-07-25 12:42:21 +00:00
|
|
|
|
2023-10-06 12:52:11 +00:00
|
|
|
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:
|
|
|
|
|
|
|
|
```python
|
|
|
|
import os
|
|
|
|
import sdcard
|
|
|
|
from machine import Pin
|
|
|
|
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")
|
|
|
|
```
|
2022-07-25 12:42:21 +00:00
|
|
|
|
|
|
|
## Image Credits
|
|
|
|
|
|
|
|
Sample images from the Webb Space Telescope (credit: NASA, ESA, CSA, and STScI).
|
|
|
|
Find more gorgeous images and info @ https://webbtelescope.org/
|
|
|
|
|
2022-09-26 02:07:05 +00:00
|
|
|
... and Raspberry Pi <3
|