Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8374

Raspberry Pi 400 and 500 • Re: Pi 500, GPIO pins, LED lights

$
0
0
Hi,

I recently purchased a Raspberry Pi 500. I like it and have no issue using Thonny and learning some programming. However, I can’t seem to program LED lights (WS 8211). The lights are attached to power and the Pi’s GPIO pins. I’ve tried any number of installs and code. However, none of it works.

At the end of the day, best as I can tell, I simply don’t know the code to access the GPIO pins. It is all built in and the code for lights and colors is all fairly basic, but…..

How do I use the GPIO pins on the raspberry pi 500?

Thanks
Wendy


Generic use of GPIO pins using Python is documented By Raspberry Pi themselves here -
Use GPIO from Python - https://www.raspberrypi.com/documentati ... rom-python



But WS8211 'Neopixel' LEDs need a different approach.

See the Raspberry Pi News Blog -
PIOLib: A userspace library for PIO control - https://www.raspberrypi.com/news/piolib ... o-control/
(This solution is not coded in Python.)


Or there is a user-provided library here -
Simplifying NeoPixel LED Control on Raspberry Pi 5 via SPI (GPIO 10) - https://github.com/vanshksingh/pi5neo#pi5neo





I’ve tried any number of installs and code. However, none of it works.
Mind-reading is not effective in these forums. It you want to persist with your own solutions, spell out what you have tried, and how it failed.

Statistics: Posted by B.Goode — Tue Jan 07, 2025 5:53 pm



Viewing all articles
Browse latest Browse all 8374

Trending Articles