Open hansamann opened 5 years ago
HI, i want to do something similar with this led ring Did you achieve your goal?
Sadly I did not but I've not tried that hard. I assume it might aloso be some python2/3 thingy...
Very cool! This should not be difficult. Please paste the error message here.
Altough my experiments with the WS2812 leds and python2 are successful, I fail to integrate both.
Hello Hansaman... Did you succeeded integrating the led as a flash ? Anyone else ? I'm seriously planning to do my own photobooth with flash, and a raspberry 4...
Hi all,
I've been trying to integrate with the Ringlicht - it's a little board that has 12 WS2812 LEDs - perfect for lighting up the scene before a shot.
https://github.com/watterott/RPi-Camera-RingLicht
Altough my experiments with the WS2812 leds and python2 are successful, I fail to integrate both. Maybe someone with a bit more python knowledge (mine is really low) could help here.
Right now I am using this libary and the examples for python of this GithHub repo work nicely, also my own examples based on these:
https://github.com/rpi-ws281x
My example code alone looks similar to this:
import time from rpi_ws281x import PixelStrip, Color
I've been trying to integrate it into user_interface.py (also I hacked the startup script as the led driver requires sudo, so the photobooth.sh script now does a sudo python), but I get a weird error telling me that strip.setSetPixelColor is being called with 4 arguments. I am only passing three, I am assuming that "self" from the python class system somehow gets passed. Problem is, it's a method from the pixel library, so how can I call it with only the three variables?
Sorry, I realize it is a bit confusing. Maybe someone could let me know what would be the best place to initialize the LED strip and then call the led strip functions. Ideally I want to start the led strip if someone has clicked the single/multiple/animation buttons and then turn it off again after the pics are taken.
Thx to all, this is a great project. It saved me a ton of time...