LED.h & Umwandeln.h
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 #include "m3pi_ng.h" 00003 //#include "Umwandeln.h" 00004 #include "LED.h" 00005 m3pi pi; 00006 00007 00008 int main() 00009 { 00010 //umwandeln A; 00011 LED B; 00012 pi.sensor_auto_calibrate(); 00013 int sensors[5]={}; 00014 while (1){ 00015 pi.calibrated_sensor(sensors); 00016 if ((sensors[0]>400) && (sensors[4]>400)) 00017 B.Blau_Blinken(2,0.2); 00018 } 00019 } 00020 //0=weiß 1000=schwarz 00021 /* 00022 int main() 00023 { 00024 00025 umwandeln A; 00026 pi.sensor_auto_calibrate(); 00027 int sensors[5]={}; 00028 00029 00030 while (1) 00031 { 00032 pi.calibrated_sensor(sensors); 00033 pi.printf(A.int_umwandeln(sensors[0])); 00034 wait(0.1); 00035 pi.cls(); 00036 } 00037 00038 } 00039 */
Generated on Thu Jul 21 2022 03:19:50 by
1.7.2