Skip to content
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

Servoblaster GPIO-17(P1-11) and GPIO-18(P1-12) not working #55

Open
VictorCorchez opened this issue Oct 31, 2015 · 2 comments
Open

Servoblaster GPIO-17(P1-11) and GPIO-18(P1-12) not working #55

VictorCorchez opened this issue Oct 31, 2015 · 2 comments

Comments

@VictorCorchez
Copy link

Any idea why those 2 pins would be blocked? First one is always 0 and second one is always 1.
I have Raspberry Pi2 and I use the latest version of user-space Servoblaster. The other pins work perfectly (even the 8th which I've seen someone has an issue with).

cmd
pic

@VictorCorchez
Copy link
Author

Also is there a way to write into /dev/servoblaster without using echo? I want to write in it from a C application from a pthread. It seems echo has a problem with this situation. I tried fprintf but nothing happens; the PWM remains unchanged.

@MarkR42
Copy link

MarkR42 commented Nov 1, 2015

You can write to it from a C application, no problem, but be sure to use fflush() after writing (if using fopen) otherwise the data will be buffered inside the C library.

system("echo ...") is an inefficient and needlessly complicated way of doing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants