Hi,
In the Funduino Robotics programming section, you had this snippet for a kill switch:
if(digitalRead(2) == HIGH) // if the push button switch was pressed
{
while(1)
{
leftMotor.write(90);
rightMotor.write(90);
}
}
What I wanted to do was to make the button a power toggle switch instead of simply turning off the wheels. From the video, it looks like that is what you had. You set the robot down, and you pushed the button to turn the wheels on. Do you have code for that one?




Find content
Female
