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

bindings.setParam error (ws281x-native.js) #122

Open
Morenju1363 opened this issue Apr 29, 2021 · 0 comments
Open

bindings.setParam error (ws281x-native.js) #122

Morenju1363 opened this issue Apr 29, 2021 · 0 comments

Comments

@Morenju1363
Copy link

Morenju1363 commented Apr 29, 2021

Hello, Im trying to run a nodejs back end server but keep running into an error. Everytime i try to run my backend.js file as "sudo node backend.js" i get the following error:

"
/home/yg/Desktop/Projects/myLEDVisualizer/node-rpi-ws281x-native/lib/ws281x-native.js:144
bindings.setParam(paramCodes.dma, dma);
^

TypeError: bindings.setParam is not a function
at Function.init (/home/yg/Desktop/Projects/myLEDVisualizer/node-rpi-ws281x-native/lib/ws281x-native.js:144:12)
at Object. (/home/yg/Desktop/Projects/myLEDVisualizer/backend.js:16:8)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47

"

I have looked into the native.js file as well as the binding file it points to and I sede that the setParam function is declared for the variable bindings.
Thanks for the help

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