diff options
| author | Fede85 <f.vanzati@gmail.com> | 2013-07-03 22:00:02 +0200 | 
|---|---|---|
| committer | Fede85 <f.vanzati@gmail.com> | 2013-07-03 22:00:02 +0200 | 
| commit | fd8c367304fe62a107332db19880c88f9ac0d082 (patch) | |
| tree | a6a2713b1e788a2eb6f95ef701a0a01e0d258c67 /libraries/Robot_Motor/examples/Robot_IR_Array_Test | |
| parent | cb3003082e7e140850071eba914c0b4347bc3bf1 (diff) | |
SPI library to the new format and moved Robot_Motor and Robot_Control libraries
Diffstat (limited to 'libraries/Robot_Motor/examples/Robot_IR_Array_Test')
| -rw-r--r-- | libraries/Robot_Motor/examples/Robot_IR_Array_Test/Robot_IR_Array_Test.ino | 26 | 
1 files changed, 0 insertions, 26 deletions
| diff --git a/libraries/Robot_Motor/examples/Robot_IR_Array_Test/Robot_IR_Array_Test.ino b/libraries/Robot_Motor/examples/Robot_IR_Array_Test/Robot_IR_Array_Test.ino deleted file mode 100644 index e201fd9..0000000 --- a/libraries/Robot_Motor/examples/Robot_IR_Array_Test/Robot_IR_Array_Test.ino +++ /dev/null @@ -1,26 +0,0 @@ -/* Motor Board IR Array Test -    -   This example of the Arduno robot's motor board returns the  -   values read fron the 5 infrared sendors on the bottom of  -   the robot. - -*/ -// include the motor board header  -#include <ArduinoRobotMotorBoard.h> - -String bar; // string for storing the informaton - -void setup(){ -  // start serial communication -  Serial.begin(9600); -  // initialize the library -  RobotMotor.begin(); -} -void loop(){ -  bar=String(""); // empty the string -  // read the sensors and add them to the string -  bar=bar+RobotMotor.readIR(0)+' '+RobotMotor.readIR(1)+' '+RobotMotor.readIR(2)+' '+RobotMotor.readIR(3)+' '+RobotMotor.readIR(4); -  // print out the values -  Serial.println(bar); -  delay(100); -} | 
