Making An Graphic Structure For Embedded Components

Whether or not its a single of all those ubiquitous minor OLED shows or a correct Liquid crystal display panel, after you have got some thing a little bit extra capable than the common 16×2 character Liquid crystal display wired up to your microcontroller, there is an outstanding prospect you are going to want to start displaying some proper illustrations or photos. Commonly talking that indicates you’ll be functioning with bitmap documents, but as you could be expecting when pushing a a long time-outdated file format into an software it was hardly ever meant for, things can get a small messy. Which is why [gfcwfzkm] has designed the Portable Graphic File (PIF) structure.

This low-overhead image structure is created especially for microcontrollers, and can be decoded on units with at minimum 60 bytes of free RAM. Visuals saved with PIF not only demand less computational methods to approach, but equally important, choose up a lot less place on flash. The format supports both equally color and monochrome pictures, and the GitHub repo even features a graphical Python 3.10 resource that lets you transform your photos to either .pif files or a .h header file for embedding right into your C code.

[gfcwfzkm] has furnished some resource code to display you how to get the PIF library up and jogging, but as of the time of this creating, there isn’t any case in point code for employing PIF within the Arduino surroundings. That’s no big deal for the old fingers in the viewers, but we’re interested in viewing how the neighborhood can make use of this file structure the moment it’s out there in a bit a lot more novice-helpful offer. It’s just one of the ultimate unchecked objects on the todo list however, so it should not be prolonged now.

Of program absolutely nothing is incorrect with using bitmaps to exhibit pictures in your microcontroller tasks, and there’s a particular edge to fiddling all around with the properly-recognised image structure. But if a new file type is all it takes to pace up access occasions and cram a several much more images on to the chip, we’re definitely completely ready to enhance.