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

HELP safeGPIO.py and P9813.py #1

Open
CHILLYSMOKES opened this issue Dec 23, 2018 · 0 comments
Open

HELP safeGPIO.py and P9813.py #1

CHILLYSMOKES opened this issue Dec 23, 2018 · 0 comments

Comments

@CHILLYSMOKES
Copy link

Thanks for doing this work. Nobody else has any code for the P9813 in Python for the Pi. I have a Pi running OctoPrint and I am trying to use a P9813 LED STRIP DIVER MODULE to drive a single LED strip for my enclosure. In the future I will chain the modules and thus not waste any more pins on the header. I'm out of my depth, here, as this isn't just telling a GPIO to go high. I am having trouble trying to get your P9813.py to execute:

pi@octopi:~ $ ./P9813.py
from: can't read /var/mail/safeGPIO
import: unable to open X server ' @ error/import.c/ImportImageCommand/364. ./P9813.py: line 16: class: command not found ./P9813.py: line 18: syntax error near unexpected token ('
./P9813.py: line 18: ` def init(self, pin_clk, pin_data, num_leds = 1, sleepEnabled = False):'

I know the code is trying to use resources from safeGPIO.py but I don't know enough to tell it how. Lot's of research before swallowing my pride and publicly asking such questions. Thanks.

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

1 participant