Makeblock-library-for-Arduino  V3.2.4
It's a library for arduino application developers
MeUltrasonicSensor.cpp File Reference

Driver for Me ultrasonic sensor device. More...

#include "MeUltrasonicSensor.h"

Detailed Description

Driver for Me ultrasonic sensor device.

This software is Copyright (C), 2012-2016, MakeBlock. Use is subject to license
conditions. The main licensing options available are GPL V2 or Commercial:
Open Source Licensing GPL V2
This is the appropriate option if you want to share the source code of your
application with everyone you distribute it to, and you also want to give them
the right to share who uses it. If you wish to use this software under Open
Source Licensing, you must contribute all your source code to the open source
community in accordance with the GPL Version 2 when your application is
distributed. See
This file is a drive for Me ultrasonic sensor device, It supports ultrasonic sensor V3.0 provided by the MakeBlock.
Method List:
  1. void MeUltrasonicSensor::setpin(uint8_t SignalPin)
  2. double MeUltrasonicSensor::distanceCm(uint16_t MAXcm)
  3. double MeUltrasonicSensor::distanceInch(uint16_t MAXinch)
  4. long MeUltrasonicSensor::measure(unsigned long timeout)
<Author>         <Time>        <Version>        <Descr>
Mark Yan         2015/09/04     1.0.0            Rebuild the old lib.
Mark Yan         2015/11/16     1.0.1            Increase 100us delay, avoid ultrasonic read exception.
Mark Yan         2016/06/25     1.0.2            Modify Read mechanism of ultrasonic waves.