Engduino  3.1.0
A fun device for learning coding
EngduinoLight.h
Go to the documentation of this file.
1 
14 #ifndef __ENGDUINOLIGHT_H__
15 #define __ENGDUINOLIGHT_H__
16 
17 #include <stdio.h>
18 #include <Arduino.h>
19 #include <Engduino.h>
20 
21 #if defined(__BOARD_ENGDUINOV2) || defined(__BOARD_ENGDUINOV3)
22 
23 
24 
25 /***********************************************************************************************\
26 * Public prototypes
27 \***********************************************************************************************/
28 
30 {
31  private:
32 
33  public:
35  void begin();
36  void end();
37  uint16_t lightLevel();
38 
39 };
40 
41 extern EngduinoLightClass EngduinoLight;
42 
43 #endif
44 #endif
45 
uint16_t lightLevel()
lightLevel function - returns light level (10 bit value)
Definition: EngduinoLight.cpp:61
void end()
end function - switch off the light sensor
Definition: EngduinoLight.cpp:49
void begin()
begin function - must be called before using other functions
Definition: EngduinoLight.cpp:39
EngduinoLightClass()
Constructor.
Definition: EngduinoLight.cpp:29
Definition: EngduinoLight.h:29