Defines | Functions
D:/DRISSI/arduino-0022/arduino-0022/libraries/uSonic/uSonic.h File Reference

Functions to get distance return by the ultrasonic sensor. More...

#include <WProgram.h>
#include <../Wire/Wire.h>

Go to the source code of this file.

Defines

#define srfAddress   0xF9
#define srAddress   0xF0
#define cmdByte   0x00
#define rangeByte   0x02

Functions

int GetRangeUS1 ()
int GetRangeUS2 ()

Detailed Description

Functions to get distance return by the ultrasonic sensor.

uSonic.cpp
Here is the C++ File Reference of this header.

Definition in file uSonic.h.


Define Documentation

#define cmdByte   0x00

The command byte of both sensors

Definition at line 34 of file uSonic.h.

#define rangeByte   0x02

The range byte to obtain distance in centimeters

Definition at line 36 of file uSonic.h.

#define srAddress   0xF0

The adress of the second sensor

Definition at line 32 of file uSonic.h.

#define srfAddress   0xF9

The adress of the first sensor

Definition at line 30 of file uSonic.h.