17
Figure 3.2: Program - Second.ino
#define var1 1
int const var3=1;
void setup()
{
Serial.begin(9600);
}
void loop()
{
const int var2 = 1;
int var4;
int var5=1;
boolean var6=false;
var4=1; // The value of c4 is now defined
Serial.print("var1 = ");
Serial.print(var1,DEC);
Serial.print(" var2 = ");
Serial.print(var2,DEC);
Serial.print(" var3 = ");
Serial.print(var3,DEC);
Serial.print(" var4 = ");
Serial.print(var4,DEC);
Serial.print(" var5 = ");
Serial.print(var5,DEC);
Serial.print(" var6 = ");
Serial.println(var6, DEC);
//var3++;
var4++;
var5++;
var6=true;
Serial.print("var1 = ");
Serial.print(var1,DEC);
Serial.print(" var2 = ");
Serial.print(var2,DEC);
Serial.print(" var3 = ");
Serial.print(var3,DEC);
Serial.print(" var4 = ");
Serial.print(var4,DEC);
Serial.print(" var5 = ");
Serial.print(var5,DEC);
Serial.print(" var6 = ");
Serial.println(var6, DEC);
Serial.println(" ");
delay(1000);
}
Summary of Contents for Pi-Bot v2.00
Page 67: ...67 Figure 6 15 ...
Page 78: ...78 UltraSonicSensorTestwithLED Program ...
Page 80: ...80 ObstacleAvoidance Program ...
Page 82: ...82 ObstacleAvoidancewithLED Program ...
Page 83: ...83 ObstacleAvoidancewithLED Program CONTINUED ...
Page 90: ...90 Download and run the following program LineFollowing Program ...
Page 91: ...91 LineFollowing Program CONTINUED ...
Page 94: ...94 AdvancedLineFollowing Program CONTINUED ...
Page 95: ...95 AdvancedLineFollowing Program CONTINUED ...
Page 96: ...96 AdvancedLineFollowing Program CONTINUED ...
Page 110: ...Appendix B Complete Pi Bot Wiring Schematic ...