 for the circuit python parsec today i want to show you how you can decode jpeg images using jpeg i o so this is a specific library that's used to take on disk jpegs which can be compressed and nice and small one of the benefits of jpegs and you may have other reasons uh for connected devices for downloading jpegs from from the web and then wanting to display them on your display in circuit python uh so the way this works you can see here i have a nice little slideshow it's just running through some jpeg images that are sitting on the circuit python drive i have import jpeg i o listed up here i've given it a set of jpeg image names that are sitting on the circuit python drive doing some of the usual display setup for this spi display here uh i'm setting up some uh a sort of placeholder blank bitmap that we will then cast our pixels into and then the key thing here is this function right here which came from todd bot he has some cool jpeg code and i grabbed this from there so what this does it sets up a decoder object with jpeg i o dot jpeg decoder so that instantiates the jpeg decoder then we grab the width and height values when we are opening the jpeg so decoder dot open and then the name of the file for whichever one we're looking at from that list uh then we create an object called bitmap which is the same size as that jpeg and we're telling it the colors uh the bit depth that we're going to use for color and then we use decoder dot decode bitmap this takes that jpeg and it basically decodes the uh compression turns it into a bitmap file that can be more easily displayed on the screen uh then the rest of this is a nice little neat slide show that's just grabbing that returned bitmap from the load jpeg to bitmap function and then my main loop is just calling that slide show so that every three seconds it updates uh and so that is how you can use jpeg images in circuit python using jpeg i o and that is your circuit python parsec