-
Notifications
You must be signed in to change notification settings - Fork 124
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
EPERM: operation not permitted, write #52
Comments
My apologies for the double submit, please delete the other issue. This was solved by running the script with SUDO |
@SimonTheEngineer if Raspbian Jessie is being used as mentioned here then it should not be necessary to run the script with sudo if logged on as user |
I was yes, fresh install too so all permissions should be default |
I just gave it a try with Raspbian Jessie and don't have the issue. i.e., it's not necessary to run the script with sudo. What happens if you run the following commands from the command line? They should turn the LED connected to gpio4 on. Do the commands turn the LED on or is there an EPERM error?
|
Note that
Errors related to permissions are usually |
Hi, I'm just trying the functions out and I'm currently trying to write to pin 4, but getting the above error message. Here's the code, it's pretty basic..
`var Gpio = require('onoff').Gpio,
led = new Gpio(4, 'out');
led.write(1);`
Has anyone come across this before?
The text was updated successfully, but these errors were encountered: