I’m finding that the Ardublock examples on this page don’t work
arcbotics.com/lessons/ardublock- … e-gripper/
Comparing these to the Sparkduino examples it seems the block examples all pass a 0 as an argument (ex sparki.gripperOpen(0)). This causes the gripper to not move, if you remove the 0 from the generated code and call sparki.gripperOpen() the examples work?
Is this expected? Would seem surprising that all the examples are broken…
Also I see odd behavior if I call consecutive open close
For example I would expect this program to open the gripper 2cm and then close it 2cm, but when ran it only closes for 2 cm, the open is skipped.
Any ideas?
#include <sparki.h>
void setup()
{
sparki.gripperOpen(2);
sparki.gripperClose(2);
}
void loop()
{
}