Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of DrehungMitStopp by
IRSensor.h
00001 #ifndef IR_SENSOR_H 00002 #define IR_SENSOR_H 00003 00004 #include "mbed.h" 00005 00006 //E. Hess 00007 //IRSensor.h 00008 00009 class IRSensor { 00010 public: 00011 IRSensor(); 00012 IRSensor(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, int number); 00013 ~IRSensor(); 00014 void init(AnalogIn* distance, DigitalOut* bit0, DigitalOut* bit1, DigitalOut* bit2, int number); 00015 float read(); 00016 float readFitered(); 00017 00018 private: 00019 AnalogIn* distance; 00020 DigitalOut* bit0; 00021 DigitalOut* bit1; 00022 DigitalOut* bit2; 00023 int number; 00024 float filteredValue; 00025 }; 00026 00027 #endif
Generated on Wed Jul 13 2022 01:25:06 by
1.7.2
