Antonia Baumgartner / Mbed 2 deprecated Versuch21

Dependencies:   mbed

Fork of Versuch20 by Alexander Wyss

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers IRSensorZ.h Source File

IRSensorZ.h

00001 #ifndef IR_SENSORZ_H_
00002 #define IR_SENSORZ_H_
00003 
00004 #include <cstdlib>
00005 #include <mbed.h>
00006 
00007 class IRSensorZ {
00008     
00009 public:
00010     IRSensorZ(AnalogIn& distance);
00011     
00012     virtual ~IRSensorZ();
00013     int read();
00014     
00015 private:
00016     AnalogIn& distance;
00017 
00018 };
00019 
00020 #endif /* IR_SENSORZ_H_ */