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

API for the BISS0001 Motion Sensor. More...

Detailed Description

UPM module for the BISS0001 Motion Sensor

biss0001.jpg
// Instantiate a Grove Motion sensor on GPIO pin D7
while (true) {
boolean value = motion.value();
if(value)
System.out.println("Detecting moving object");
else
System.out.println("No moving objects detected");
Thread.sleep(1000);
}

Public Member Functions

synchronized void delete ()
 
 BISS0001 (int pin)
 
boolean value ()
 

Constructor & Destructor Documentation

BISS0001 ( int  pin)

BISS0001 motion sensor constructor

Parameters
pinDigital pin to use

Member Function Documentation

boolean value ( )

Gets the motion value from the sensor

Returns
Motion reading

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