You can find Python 2 instructions on Waveshare's website Download Waveshare examples and Python libraries Note: These instructions are for Python 3. $ sudo apt-get install python3-pip python3-pil I have not tested Pillow for this project, but it may work: # Install the required Python libraries Apparently, the PIL package is all but dead, but there is an alternative, Pillow. You also need the python3-pil package for drawing shapes. You also need some Python libraries to use Python to control the ePaper display, the RPi.GPIO pip package. # Configure, build, check and install the BCM2853 libraries # Change directories into the extracted code To install the libraries, you need to download the software tarball and build and install the software with make: # Download the BCM2853 libraries and extract them Install BCM2835 librariesĪs mentioned above, the BCM2835 libraries are software for the Broadcom BCM2385 chip on the Raspberry Pi, which allows access to the GPIO pins and the ability to use them to control devices.Īs I'm writing this, the latest version of the Broadcom BCM 2835 libraries for the Raspberry Pi is v1.68. The SPI bus allows serial data communication to be used with devices-in this case, the ePaper display: $ sudo raspi-configįrom the menu that pops up, select Interfacing Options -> SPI -> Yes to enable the SPI interface, then reboot. The easiest way to enable SPI is with the Raspberry Pi raspi-config command. Here's a step-by-step walkthrough of how to do these tasks. Finally, you need to install the Waveshare libraries for working with the 2.13" display using Python. Setting up the Raspberry Pi to work with the ePaper display requires you to enable the Serial Peripheral Interface (SPI) in the Raspberry Pi software, install the BCM2835 C libraries (to access the GPIO functions for the Broadcom BCM 2835 chip on the Raspberry Pi), and install Python GPIO libraries to control the ePaper display. Free online course: RHEL technical overview.Set up the Raspberry Pi and the ePaper display I used Raspberry Pi OS for this project, and while it surely can be done with other operating systems, the raspi-config command, used below, is most easily available on Raspberry Pi OS. It's easy to install: Just slip the display down onto the Raspberry Pi's GIPO headers and you're good to go. I didn't have a good use for one, but, dang it, it looked like fun! I purchased a little 2.13" Waveshare display, which fit perfectly on top of the Raspberry Pi Zero W. I was also intrigued by the idea of getting an ePaper display for the little Zero W. I made a Pi Day countdown timer, and you can too!Ī while back, I purchased a Raspberry Pi Zero W and recently used it to figure out why my WiFi was so bad. But fear no more, dear Pi Day celebrant! For today, we begin the long countdown to the next Pi Day! As we look into the face of the Ides of March, we can long for the joys of the previous, well, day. The days after any holiday can be hard when returning to work after high spirits and plenty of fun, and Pi Day is no exception. For 2021, Pi Day has come and gone, leaving fond memories and plenty of Raspberry Pi projects to try out.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |