Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ST_INTERFACES X_NUCLEO_COMMON
Dependents: Ultrasound_And_IMU
Fork of X_NUCLEO_6180XA1 by
Diff: Components/Interfaces/LightSensor.h
- Revision:
- 50:18e064bfb156
- Parent:
- 47:2fc173b227d4
--- a/Components/Interfaces/LightSensor.h Wed Jun 15 11:55:18 2016 +0000
+++ b/Components/Interfaces/LightSensor.h Fri Sep 09 09:50:12 2016 +0000
@@ -41,12 +41,12 @@
#define __LIGHT_SENSOR_CLASS_H
/* Includes ------------------------------------------------------------------*/
-#include "Component_class.h"
+#include "ComponentObject.h"
/* Classes ------------------------------------------------------------------*/
/** An abstract class for ambient light sensors
*/
-class LightSensor : public Component
+class LightSensor : public ComponentObject
{
public:
/**
@@ -54,7 +54,7 @@
* @param[out] piData Pointer to where to store light to
* @return 0 in case of success, an error code otherwise
*/
- virtual int GetLight(uint32_t *piData) = 0;
+ virtual int GetLux(uint32_t *piData) = 0;
};
#endif /* __LIGHT_SENSOR_CLASS_H */
