Author: Kristin Yen
A program to control two drive blocks in a slithering/stepping motion.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | void setup()
{
}
void loop()
{
set_drive(150);
set_block_value(10588,10);
wait(1000);
set_drive(0);
set_block_value(10588,0);
wait(1000);
set_drive(10);
set_block_value(10588,150);
wait(1000);
set_drive(0);
set_block_value(10588,0);
wait(1000);
}
|