Hello! I would like to use the Johnny-Five library with a Particle Photon2. I tried using the VoodooSpark firmware to establish a serial connection, but the firmware compiled with errors. It seems like maybe this is a deprecated firmware. Can anybody point me in the direction of resources for setting up a serial connection with a Photon2 to enable use of the Johnny Five library? Or other recommendations for Javascript robotics techniques with the Photon2?
There are two compile errors in the voodoospark firmware. The easy one is that ToServoIndex() doesn't return a value in all cases. Added a return 0
after the #endif
but before the }
fixes that.
The harder one is that pingPulseIn()
is very specific to the STM32 and won't work on Gen 3 or Gen 4 devices. If you don't need to use that function, you can just comment it out and return 0 and the firmware will compile.
I don't know if everything else will work properly, but it will at least compile.
2 Likes
Thanks, that got things going for me.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.