main.cpp: Sensoren einlesen und Motoren ansteuern

Dependencies:   mbed

IRSensor.h

Committer:
luethale
Date:
2018-04-16
Revision:
8:862bf9225953
Parent:
5:47262622a9bf

File content as of revision 8:862bf9225953:

#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 */