-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work properly with more than 2 LEDs #19
Comments
Not sure why. set_high and set_low reverses for pin 7, 8 and 10, 12. |
I've changed your code slightly:
and it works perfectly on my Pi Zero. All the lights come on, then all off and then each one comes on and then off. I use BCM because the development board has BCM numbers etched on them.
and the lights start off. I'm using a Pi Zero, Buster and ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [armv6l-linux-eabihf] installed using RVM, rpi_gpio (0.3.3). I've left it running for 30 minutes and it still works as it should. Might it be down to something else using the serial RXD and TXD - pins 8 and 10? Pin 7 is also the General Purpose Clock. If you move the LED's to different, GPIO only pins, do you get the same problems? For example pins 11, 13, 15 and 16? Also does your Pi have enough amps? I've had problems with that in the past. |
So, @Souravgoswami ? |
Not really exactly sure, I don't have the raspberry pi setup any more :( Maybe it can be closed? |
Hi, I created a script that blinks the LEDs on channel 12, 7, and 8.
I am using Arch Linux ARM on Rapsberry Pi 3 model B.
My code:
I see irregular flashes. The LED [at pin] 12 turns on and off first. Then LED 7, then LED 8 without turning LED 7 off. Then LED 12 goes on and off. Then 7 goes off and on after a while. Then LED 8 goes off and on and it continues. It looks messy. This shouldn't happen! Same happens with PWM...
The text was updated successfully, but these errors were encountered: