Skip to content

Adafruit_Sensor

Sensor API class for CircuitPlayground board

詳細情報

メンバー

Adafruit_Sensor()

Adafruit_Sensor::Adafruit_Sensor()

~Adafruit_Sensor()

virtual Adafruit_Sensor::~Adafruit_Sensor()

enableAutoRange()

enable or disable auto-ranging for the sensor

virtual void Adafruit_Sensor::enableAutoRange(bool enabled)

引数

  • bool enabled pass true to enable auto-ranging, false to disable

getEvent()

enable auto-ranging for the sensor

virtual bool Adafruit_Sensor::getEvent(sensors_event_t *)=0

引数

  • sensors_event_t* ``

戻り値

bool true on success, false on failure

getSensor()

get information on the sensor

virtual void Adafruit_Sensor::getSensor(sensor_t *)=0

引数

  • sensor_t* ``