18 lines
No EOL
445 B
C++
18 lines
No EOL
445 B
C++
//
|
|
// Created by camer on 16/05/2020.
|
|
//
|
|
|
|
#include "../../../include/AnalogDevices/AnalogSensors/AnalogSensorLuminosity.h"
|
|
|
|
//AnalogSensorLuminosity ///////////////////////////
|
|
AnalogSensorLuminosity::AnalogSensorLuminosity(int temps):AnalogDevice(200, temps){}
|
|
|
|
void AnalogSensorLuminosity::run(){
|
|
while(1){
|
|
val = luminosite_environnement;
|
|
if(ptrmem!=NULL){
|
|
*ptrmem = val;
|
|
}
|
|
sleep(temps);
|
|
}
|
|
} |