Open jadonk opened 6 years ago
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 Linux beaglebone 4.9.88-ti-r111 and BeagleBoard.org Debian Image 2018-03-05
I tried to implement the exported SPI functions to bonescript so that it can be called like this : var b=require('bonescript') b.openSPI(); ...
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/bonescript#27