-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add C function support #13
Comments
The Arduino-for-Userspace-Linux library seems to be largely superseded by MRAA and the now "native" support by create.arduino.cc. |
It is still riddled with bugs to the best of my knowledge, but this could increase the user base significantly. |
@jadonk @anujdeshpande I have tried to implement external C function support through this example here : [https://github.com/vaishnav98/bonescript/tree/master/test/test-ffi_spi].can you please review it , i had the code tested on BeagleBone Black with I tried to implement the exported SPI functions to bonescript so that it can be called like this : but in this case the example works only when the example.js is in the same directory as the spi.js, and throws an error "File not Found spidev.so" , it seems like a path issue how can i solve it?can it be solved by adding the path to the .so file in LD_LIBRARY_PATH environment variable, if yes , how do i modify the makefile to accomodate this? |
From @jadonk on July 26, 2012 18:8
It shouldn't be required to create node modules to add C functions that are compiled on the target. Need to merge in support for C routines that leverage Arduino-for-Userspace-Linux.
Copied from original issue: jadonk#27
The text was updated successfully, but these errors were encountered: