ErickSimoes Ultrasonic Versions Save

Minimalist library for Ultrasonic Module HC-SR04, PING))) and Seeed SEN136B5B to Arduino

3.0.0

5 years ago

DistanceRead is now Read() [#47]

  • To simplify the name of the distance read method to read() Documentation, examples and other references have been updated. The old method still works, but a depreciation message is launched.

Abolition of the pulseIn method [#45]

  • The implementation of the timing now no longer use pulseIn() to prevent any incompatibility problems with platforms that do not have this method implemented.

Other changes

  • Added WProgram.h to header file to increase code compatibility [#46];
  • Created examples using timeouts [#44];
  • Created code of conduct, instructions to contribution and issue templates;
  • Some fixes in documentation and code style.

Thanks

My thanks to the contributions of the whole community, especially @OtacilioN and @per1234 🖖

2.1.0

6 years ago

Add timeout to prevent lock-up

Prevents lock-up when waiting for echo return. Delegated Ultrasonic constructor for three-pin operation

The timeout is an optional parameter (20000UL by default) in the constructor or defined at runtime.

On the constructor:

Ultrasonic ultrasonic(12, 13, 40000UL);

Or in runtime:

ultrasonic.setTimeout(40000UL);

Tanks @eliotlim

2.0.1

7 years ago
  • Optimization of distanceRead() method implementation.

2.0.0

7 years ago
  • Add suport to three pins sensors, like Ping))) and Seeed SEN136B5B (from Seeed Studio);
  • It is guaranteed that the distance reading method will not return negative values;
  • Updates documentation.

v1.0.1

7 years ago
  • Updated name of project

v1.0

7 years ago
  • Updated documentation
  • License update
  • Duplicate code removal
  • Correction of the return of the distanceRead () method
  • New file layout
  • Adding library.properties

Ultrasonick-v0.1

7 years ago
  • The read function implemented to return, by default, the distance in centimeters;
  • Read function implemented to receive as parameter in which unit should return the distance value (centimeters or inches);
  • Defined which improvements to the next version.