Adafruit Library
Public Member Functions | List of all members
Adafruit_Sensor Class Referenceabstract

Sensor API class for CircuitPlayground board. More...

#include <Adafruit_CPlay_Sensor.h>

Inheritance diagram for Adafruit_Sensor:
Adafruit_CPlay_LIS3DH

Public Member Functions

virtual void enableAutoRange (bool enabled)
 enable or disable auto-ranging for the sensor More...
 
virtual bool getEvent (sensors_event_t *)=0
 enable auto-ranging for the sensor More...
 
virtual void getSensor (sensor_t *)=0
 get information on the sensor
 

Detailed Description

Sensor API class for CircuitPlayground board.

Member Function Documentation

◆ enableAutoRange()

virtual void Adafruit_Sensor::enableAutoRange ( bool  enabled)
inlinevirtual

enable or disable auto-ranging for the sensor

Parameters
enabledpass true to enable auto-ranging, false to disable

◆ getEvent()

virtual bool Adafruit_Sensor::getEvent ( sensors_event_t )
pure virtual

enable auto-ranging for the sensor

Returns
true on success, false on failure

Implemented in Adafruit_CPlay_LIS3DH.


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