This is a proof-of-concept that Johnny-Five will work with Scratch.
To get it to work:
- Install the dependencies:
npm install
- Run the helper app:
node lib/index.js
- Install the Desktop (offline) version of Scratch 2.0
- While holding SHIFT, select File -> Import Experimental HTTP Extension
- Choose
j5.s2e
You will see some servo blocks under "More Blocks". They will work to control the servos. I was able to get it working a sketch that looks like this:
This works, but I'm not likely to take it any further. I'm looking at doing something with Blockly. Perhaps based off of Robotnik? I'm keeping this around if anyone wants to play with it.