-
Notifications
You must be signed in to change notification settings - Fork 1
Issues running code #3
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
Comments
I would double check the connection to the board, see https://github.com/wrobell/fpulse/blob/master/fpulse/driver/tlc5947.py. Also, can you check if the following command works for you?
If you are sure the connection is solid and above command works for you, can you send log file generated as root
|
Print shows me the following: fff0000000000000 fpulse.txt this log file is the output from strace. Thank you for getting back to me. Trying to control some LEDs and make them dimmable. |
The strace log is for the command with "print" driver. Sorry my fault. Can I ask you to provide the stacktrace for this command
Thanks. |
I linked it in the comment above |
The file you linked above is executed for "print" driver (see the first line of the stack trace). Please provide the stack trace file for tlc5947 driver with command (as root):
|
hey, I am having trouble running the code as well.... below is my stacktrace Thanks for sharing the library !! |
@ravipurigen, how do you set LD_LIBRARY_PATH? |
I added it to the end of file as |
Can you show output of two commands
BTW. I can see you use spaces before and after
|
BTW. I had a problem compiling latest bcm2835 library on my laptop. The
|
Thanks for pointing out the error I updated the LD_LIBRARY_PATH and it shows up on the env list I also, built the library using the flag you mentioned... it still gives the same error |
Can you try this command please (should it be
Then type:
|
Can you please show output of the command
The error you are getting means that probably, the library you compiled, is not a shared library. |
The output is |
This is static library then. Please use the exact commands from the README file to compile the library. |
I found a problem with the .so file and recompiled it with the flag -fPIC as mentioned in the README |
Can you debug please and tell me where exactly it hangs? |
I am new both to python and linux so could you please share few links/sources that can help me to debug it ? |
Please try something like this
|
Thanks for sharing the information. Can you confirm which Raspberry PI OS are you using ? It seems that Jessie (PIXEL) might have problems with SPI communication. |
I am using Arch Linux. |
Turned out that my rasp pi compute module was the culprit and it works great with the rasp pi B v3 model. |
I am glad that FPulse works for you at the end. :) In short, it should be possible to use 15 decimal places. I am closing this issue as at least one person is able to run the code. Please raise new issues if necessary. |
Sure thing.. thanks !! |
I'm trying to get responses from my leds on ports 0,1,2. The script runs with "sudo bin/fpulse tlc5947 conf/morse.py" but it just hangs and get no response.
Anything thoughts? Thanks.
The text was updated successfully, but these errors were encountered: