0

Soldering NeoPixel 1/4 60 Ring
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Soldering NeoPixel 1/4 60 Ring

by mtyeager on Tue Jan 14, 2020 2:28 pm

Nothing.

Adafruit support answered the question about RGBW above.

I suspect they know the answer regarding sudo on RPi.

Pretty sure there is no way around it, but I thought it was worth asking and I didn't think it was worth starting a new thread...

Thanks.

mtyeager
 
Posts: 11
Joined: Sat Jan 11, 2020 4:23 pm

Re: Soldering NeoPixel 1/4 60 Ring

by franklin97355 on Tue Jan 14, 2020 3:09 pm

sudo in Linux is a way to allow a regular user to run programs with superuser privileges. There are ways around it but I'm not good enough to tell you how. Google can get you instructions on setting up accounts and privileges.

franklin97355
 
Posts: 21433
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Soldering NeoPixel 1/4 60 Ring

by mtyeager on Tue Jan 14, 2020 3:46 pm

Yea, running under sudo means it is running under a superuser, which is a security problem.

I am calling the circuit python routines from a larger program running on the Raspberry Pi, and I can't afford to open a security hole just to light these guys up.

I read instructions somewhere that you have to run it under sudo, but then I read that maybe it was a Python 2.7 thing, and under Python 3.7 you don't.

At any rate, if I try to run under a normal user, I get a credentials error. Runs fine under sudo.

Its a little confusing.

mtyeager
 
Posts: 11
Joined: Sat Jan 11, 2020 4:23 pm

Re: Soldering NeoPixel 1/4 60 Ring

by franklin97355 on Tue Jan 14, 2020 4:27 pm

Can you post the program you are trying to run and how you are calling it?

franklin97355
 
Posts: 21433
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Soldering NeoPixel 1/4 60 Ring

by mtyeager on Tue Jan 14, 2020 5:36 pm

From the terminal I am running the RPi simple test python script that is part of the circuit python neopixel GitHub.

sudo python3 RpiSimpleTestNeoPixels.py

If I run without sudo, I get a Permissions denied error, along with the message "NeoPixel support requires running with sudo, please try again!"

mtyeager
 
Posts: 11
Joined: Sat Jan 11, 2020 4:23 pm

Re: Soldering NeoPixel 1/4 60 Ring

by mtyeager on Tue Jan 14, 2020 6:21 pm

Franklin, do you have an Alpaca?

mtyeager
 
Posts: 11
Joined: Sat Jan 11, 2020 4:23 pm

Re: Soldering NeoPixel 1/4 60 Ring

by franklin97355 on Tue Jan 14, 2020 6:38 pm

Two in fact.

franklin97355
 
Posts: 21433
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: Soldering NeoPixel 1/4 60 Ring

by mtyeager on Tue Jan 14, 2020 6:39 pm

Fantastic! Very cool!

mtyeager
 
Posts: 11
Joined: Sat Jan 11, 2020 4:23 pm

Re: Soldering NeoPixel 1/4 60 Ring

by mtyeager on Tue Jan 14, 2020 6:48 pm

Picture of my build.

Decided not to go with circular.

Thought this was more "expressive".

NeoPixelBuild.jpg
NeoPixelBuild.jpg (943.64 KiB) Viewed 34 times

mtyeager
 
Posts: 11
Joined: Sat Jan 11, 2020 4:23 pm

Re: Soldering NeoPixel 1/4 60 Ring

by franklin97355 on Tue Jan 14, 2020 7:03 pm

Nice!

franklin97355
 
Posts: 21433
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Please be positive and constructive with your questions and comments.