Also, you use the .blit operation to put the picture on the screen. Finally, the
pygame.display.update operation causes all the pictures to be displayed.
Did You Know: Movies
Many cameras can capture high-definition videos as well as photos. They use
something called HDSLR (high-definition single-lens reflex) technology. These
cameras save the videos in MPEG format. In the PyGame library, you can use the
pygame.movie operation to display these MPEG-format videos.
Before moving on, you need to know about some additional flexibility concerning your images.
Putting your photos on another storage device besides the SD card will allow you to not only store
larger and higher-resolution photo files, it will also allow you to store more photos. This means more
vacation photos to share. Your poor neighbors!
Storing Photos on a Removable Drive
HD photos can take up a great deal of space. If you have a large number of photos to present, your SD
card may not have the space needed to hold them all. Remember that the Raspbian operating system
also resides on the SD card. One way to fix this problem is to use a removable drive to hold your
presentation photos. However, using a removable drive introduces a new problem: How does your
Python presentation script access the photos on the removable drive?
Before you start modifying the presentation script, you need to determine the “device file” name
Raspbian will assign to your removable drive. Basically, a device file is a file name Raspbian uses
to access a device, such as a removable hard drive. To determine the device file name, you follow
these steps:
- While in the GUI, plug your removable drive into an open USB port on your Raspberry Pi.
- When the Removable Medium Is Inserted window appears, select Open in File Manager if it is
not already selected and then click the OK button. The File Manager window opens, showing
your files and some other important information (see Figure 23.3).