main.cpp: Sensoren einlesen und Motoren ansteuern

Dependencies:   mbed

IRSensor.h

Committer:
Helvis
Date:
2018-04-16
Revision:
5:47262622a9bf
Parent:
0:9a3e7847a4be

File content as of revision 5:47262622a9bf:

#ifndef IR_SENSOR_H_
#define IR_SENSOR_H_

#include <cstdlib>
#include <mbed.h>

class IRSensor {
    
public:
    IRSensor (AnalogIn& distance);
                
    virtual ~IRSensor();
    float readL();
    float readR();
    float readC();
    float readB();
private:
    AnalogIn& distance;
};

#endif /* IR_SENSOR H */