Class Analog Sensor for ASAD.

Sensor.h

Committer:
renemagrit
Date:
2019-09-09
Revision:
0:ec0a410e0ce6

File content as of revision 0:ec0a410e0ce6:

#ifndef __SENSOR_H__
#define __SENSOR_H__
#include "mbed.h"
class Sensor{
    public:
    
        Sensor();
        Sensor(PinName _pin,float _n,float _k);
        float value();
        
        //f=k*analogIN.read()+n
        float n,k;  
        PinName pin; 
};

#endif