Seb Pol
/
Roboter
LED.h & Umwandeln.h
main.cpp
- Committer:
- spolak
- Date:
- 2017-01-11
- Revision:
- 0:d453d7554981
File content as of revision 0:d453d7554981:
#include "mbed.h" #include "m3pi_ng.h" //#include "Umwandeln.h" #include "LED.h" m3pi pi; int main() { //umwandeln A; LED B; pi.sensor_auto_calibrate(); int sensors[5]={}; while (1){ pi.calibrated_sensor(sensors); if ((sensors[0]>400) && (sensors[4]>400)) B.Blau_Blinken(2,0.2); } } //0=weiß 1000=schwarz /* int main() { umwandeln A; pi.sensor_auto_calibrate(); int sensors[5]={}; while (1) { pi.calibrated_sensor(sensors); pi.printf(A.int_umwandeln(sensors[0])); wait(0.1); pi.cls(); } } */