upm  0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
Public Member Functions | List of all members

API for the Grove Collision Sensor. More...

Detailed Description

The Grove Collision Sensor can detect whether any collision movement or vibration happens. It outputs a low pulse signal when vibration is detected.

grovecollision.jpg

Public Member Functions

synchronized void delete ()
 
 GroveCollision (int pin)
 
boolean isColliding ()
 

Constructor & Destructor Documentation

GroveCollision ( int  pin)

Grove collision sensor constructor

Parameters
pinDigital pin to use

Member Function Documentation

boolean isColliding ( )
Returns
bool Defines whether something is colliding with sensor

The documentation for this class was generated from the following file: