Thank you both for your time and information. I read every link both of you provided.
I tried to install various things per the instructions. I received the error message
E: Unable to locate package……
Or
E: could not open lock file….
E: Unable to acquire the dpkg frontend lock
Neopixel which was mentioned in y’all’s link and was one of the files I could not install due to the above error message.
Eventually, I tried to install GPIO zero. Apparently, it is already installed as the feedback was “python3-GPIO zero is already the newest version (2.0.1-0+rpt1)”. After that tried to list files and scrolled through the library folder. I still have no idea what libraries are on the computer or which one’s I’ll need.
When I coded a program to run the lights, I ran this code. (I received no error message after running the code. When I originally posted I kept getting an error message telling me GPIO was not defined. So this is progress, I guess.)
From GPIO zero import LED
From time import sleep
Led = LED(18)
Led.on()
Sleep(2)
Led.off()
Unfortunately, nothing happened. It is possible that my power source isn’t enough? I am ordering a new power source with higher voltage.
However, I do not understand why most everything I tried to install led to the following error message:
E: Unable to locate package…..
Or
E: could not open lock file….
E: Unable to acquire the dpkg frontend lock
I guess my questions now are:
1. Why do I keep getting those error messages?
2. Is that proper code to turn a string of lights on and off?
3. Is there an alternative to Neopixel for turning one light in a string on and off?
Thanks
Wendy
I tried to install various things per the instructions. I received the error message
E: Unable to locate package……
Or
E: could not open lock file….
E: Unable to acquire the dpkg frontend lock
Neopixel which was mentioned in y’all’s link and was one of the files I could not install due to the above error message.
Eventually, I tried to install GPIO zero. Apparently, it is already installed as the feedback was “python3-GPIO zero is already the newest version (2.0.1-0+rpt1)”. After that tried to list files and scrolled through the library folder. I still have no idea what libraries are on the computer or which one’s I’ll need.
When I coded a program to run the lights, I ran this code. (I received no error message after running the code. When I originally posted I kept getting an error message telling me GPIO was not defined. So this is progress, I guess.)
From GPIO zero import LED
From time import sleep
Led = LED(18)
Led.on()
Sleep(2)
Led.off()
Unfortunately, nothing happened. It is possible that my power source isn’t enough? I am ordering a new power source with higher voltage.
However, I do not understand why most everything I tried to install led to the following error message:
E: Unable to locate package…..
Or
E: could not open lock file….
E: Unable to acquire the dpkg frontend lock
I guess my questions now are:
1. Why do I keep getting those error messages?
2. Is that proper code to turn a string of lights on and off?
3. Is there an alternative to Neopixel for turning one light in a string on and off?
Thanks
Wendy
Statistics: Posted by Wendy82 — Wed Jan 08, 2025 6:10 am