Arduino library for the I²C Sonar Range Finder SRF08
|
Go to the documentation of this file.
23 #define _SRF08_STD_ADDRESS 112
24 #define _SRF08_LIB_VERSION 101
36 SRF08(uint8_t address);
58 uint8_t _addressSRF08;
60 bool _isReadyForReading;
61 uint32_t _timeOfLastReading;
62 uint16_t _prosessDelay;
The main class of the Arduino library for the SRF08 sensor.
Definition: SRF08.h:30
bool checkIfReadyForReading()
Checks if the SRF08 is ready to start a new range measurement.
Definition: SRF08.cpp:232
void startRangeReadingUNSAFE()
Starts a new measurement with the SRF08 sensor if possible, but without blocking features.
Definition: SRF08.cpp:136
SRF08()
Main constructor of the SRF08 class.
Definition: SRF08.cpp:58
bool startRangeReading()
Starts a new measurement with the SRF08 sensor if possible.
Definition: SRF08.cpp:110
bool readRange()
Reads the current range measurement from the SRF08 sensor if possible.
Definition: SRF08.cpp:155
uint32_t getTimeOfLastReading()
Get the system time at which the SRF08 sensor started the last range measurement.
Definition: SRF08.cpp:250
uint16_t get_version()
Get the version of the library.
Definition: SRF08.cpp:259
void readRangeUNSAFE()
Reads the current range measurement from the SRF08 sensor if possible. This Methode allows unsafe ran...
Definition: SRF08.cpp:201
~SRF08()
Main destructor of the SRF08 class.
Definition: SRF08.cpp:78
int16_t getDistance()
Get the last measured distance of the SRF08 sensor.
Definition: SRF08.cpp:241
void init()
Initialize the SRF08 Sonar Range Finder.
Definition: SRF08.cpp:89