aboutsummaryrefslogtreecommitdiff
path: root/sensor_als.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2018-04-09 22:42:45 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2018-04-09 22:42:45 +0800
commit6bdb9028af9a5256fbb47b942843e49aef7e3aa1 (patch)
treea2346e35e36a3fcb016cb7ab65bcbcb84dede1bf /sensor_als.hpp
downloadlightsd-6bdb9028af9a5256fbb47b942843e49aef7e3aa1.tar.xz
Initial commit.
Diffstat (limited to 'sensor_als.hpp')
-rw-r--r--sensor_als.hpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/sensor_als.hpp b/sensor_als.hpp
new file mode 100644
index 0000000..0548545
--- /dev/null
+++ b/sensor_als.hpp
@@ -0,0 +1,14 @@
+#ifndef SENSOR_ALS_HPP
+#define SENSOR_ALS_HPP
+#include "sensors.hpp"
+class SensorALS:public SensorBase
+{
+ private:
+ float value;
+ protected:
+ void enable_scan_elements();
+ public:
+ void update_values();
+ float get_value();
+};
+#endif