upm
0.2.0
Sensor/Actuator repository for libmraa (v0.6.1)
|
C++ API for the Grove Collision Sensor. More...
The Grove Collision Sensor can detect whether any collision movement or vibration happens. It will output a low pulse signal when vibration is detected.
Public Member Functions | |
GroveCollision (int pin) | |
~GroveCollision () | |
bool | isColliding () |
GroveCollision | ( | int | pin | ) |
Grove Collision Constructor
pin | digital pin to use |
~GroveCollision | ( | ) |
Grove Collision Destructor
bool isColliding | ( | ) |