Engduino v2.1
Files | Functions
Driver for Engduino Light Sensor

This is the driver code for Light on the Engduino In v2.1 this magnetometer is a Avago ADPS-9008. More...

Files

file  EngduinoLight.cpp
 

Engduino Light Sensor driver.


file  EngduinoLight.h
 

Engduino Light sensor driver.


Functions

 EngduinoLightClass::EngduinoLightClass ()
 Constructor.
void EngduinoLightClass::begin ()
 begin function - must be called before using other functions
void EngduinoLightClass::end ()
 end function - switch off the light sensor
uint16_t EngduinoLightClass::lightLevel ()
 lightLevel function - returns light level (10 bit value)

Detailed Description

This is the driver code for Light on the Engduino In v2.1 this magnetometer is a Avago ADPS-9008.


Function Documentation

void EngduinoLightClass::begin ( )

begin function - must be called before using other functions

Does nothing in this case

Definition at line 36 of file EngduinoLight.cpp.

void EngduinoLightClass::end ( )

end function - switch off the light sensor

Does nothing in this case

Definition at line 46 of file EngduinoLight.cpp.

EngduinoLightClass::EngduinoLightClass ( )

Constructor.

C++ constructor for this class. Empty.

Definition at line 26 of file EngduinoLight.cpp.

uint16_t EngduinoLightClass::lightLevel ( )

lightLevel function - returns light level (10 bit value)

This function returns the light level. Since the input is an analogue one and the ADC gives a 10 bit value, it returns a 16 bit integer.

Definition at line 58 of file EngduinoLight.cpp.