You'll also need to stick with the 32-bit release if you use the "legacy" version of the Raspberry Pi OS, which still uses Debian 10 ("Buster") as its base instead of the newer Debian 11 (" Bullseye").Īll Raspberry Pi OS images can be downloaded from the Pi Foundation's website. The 32-bit version of the Raspberry Pi OS image isn't going away, and it remains supported on both 32- and 64-bit Pi devices for anyone who prefers or needs it-old Pi and Pi 2 boards with 32-bit processors remain fully supported. The 64-bit versions of the images are actually a bit smaller in file size than their 32-bit counterparts, presumably because they don't need to support the full range of Pi hardware like the 32-bit images do. The "desktop with recommended apps" version of the OS isn't available in 64-bit yet, so you'll need to install things like LibreOffice and your preferred development tools yourself. test-image.py howchoo-low-res-h.pngįor best results, you'll want to use an image that's the same aspect ratio as your panel or else build some cropping functionality into the script.As of this writing, there are only two versions of the 64-bit Pi OS image available: the "Lite" version, which has no pre-installed desktop environment or apps, and the version with the desktop and a bare minimum of apps pre-installed. Now make the script executable: chmod +x test-image.pyĪnd run the script passing in your image as an argument: sudo. Image.thumbnail((matrix.width, matrix.height), Image.ANTIALIAS) # Create a thumbnail that first our screen Options.hardware_mapping = 'adafruit-hat' Create a new file called test-image.py and add the following: #!/usr/bin/env python3įrom rgbmatrix import RGBMatrix, RGBMatrixOptions Feel free to create a working directory of your choice, but I'm going work right out of the home directory: cdįirst, you need to download a sample image: wget Give this a shot to make sure everything is set up correctly.įor this example, you'll work from another directory. Finally, for this particular sample script, we can pass in the text we want to scroll with -text. And, because we're using the adafruit bonnet, we need to specify the hardware with -led-gpio-mapping=adafruit-hat.Once you get to the point where you know and understand the relative strengths and weaknesses of each, you can be more selective, but if you want to be able to work through online tutorials with minimal fuss, raspbian is your best bet. I’d suggest 4GB for future proofing, and more potential for other uses. Raspbian is by far the best supported starting out. If you do something like the visual studio addon, you’re not going to have a good time. As for RAM, again you can get away with 2GB but I’d suggest more. You can get away with a Pi3 but that’s pushing it. Then, because the default display size is 32x32 and my panel is 64x32, I'm passing in -led-cols=64 to override the number of columns. ago I would suggest a 4, just for future proofing.We're calling this script with python3 because that's how we built the library. You must be in the samples directory for the fonts to load properly. Note: Some of the sample scripts are a little bit feeble. Now run the following command: sudo python3 runtext.py -led-cols=64 -led-gpio-mapping=adafruit-hat -text="Hello, world!" Navigate to the samples directory: cd bindings/python/samples You're going to use a Python script called runtext.py that scrolls text across the screen on repeat. The library ships with some sample code to get us started. It’s a free and open-source Linux-based system that works with various devices, including laptops. With our hardware set up and the software installed, let's run a simple test. The Raspberry Pi OS (previously referred to as Raspbian) is a Debian-based operating system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |