Commit b5e55995 authored by Jari's avatar Jari

polishing

parent 558125ee
/*
* Example program for from IRBot – IR controlled vibrobot
* Example program for from IRBot – IR controlled vibrabot
* Version 0.9 May 2015
* Copyright 2015 by Jari Suominen
*/
......@@ -10,16 +10,14 @@
IRBot bot;
void setup() {
pinMode(13,OUTPUT);
digitalWrite(13,LOW);
}
void loop() {
bot.waitIR(3);
pinMode(13,OUTPUT);
bot.waitIR(3);
bot.walk();
digitalWrite(13,HIGH);
delay(2000);
bot.sendIR(2);
bot.walk();
bot.waitIR(0);
bot.stop();
digitalWrite(13,LOW);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment