M0_Übung_3b
Fork of M0_Lektion03b by
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 00003 // **** DEFINITIONEN **** 00004 00005 DigitalOut ledGR(p5); 00006 DigitalOut ledBL(p34); 00007 DigitalOut ledRT(p36); 00008 00009 // **** HAUPTPROGRAMM **** 00010 00011 int main() 00012 { 00013 while(1) { 00014 ledGR = 1; 00015 ledBL = 1; 00016 ledRT = 0; 00017 wait(5); 00018 00019 ledGR = 0; 00020 ledBL = 1; 00021 ledRT = 0; 00022 wait(2); 00023 00024 ledGR = 0; 00025 ledBL = 1; 00026 ledRT = 1; 00027 wait(4); 00028 00029 ledGR = 0; 00030 ledBL = 1; 00031 ledRT = 1; 00032 wait(1); 00033 00034 ledGR = 1; 00035 ledBL = 1; 00036 ledRT = 1; 00037 wait(1); 00038 00039 ledGR = 0; 00040 ledBL = 1; 00041 ledRT = 1; 00042 wait(1); 00043 00044 ledGR = 1; 00045 ledBL = 1; 00046 ledRT = 1; 00047 wait(1); 00048 00049 ledGR = 0; 00050 ledBL = 1; 00051 ledRT = 1; 00052 wait(1); 00053 00054 ledGR = 1; 00055 ledBL = 1; 00056 ledRT = 1; 00057 wait(1); 00058 00059 ledGR = 0; 00060 ledBL = 1; 00061 ledRT = 0; 00062 wait(2); 00063 00064 } 00065 } 00066 // **** ENDE ****
Generated on Wed Jul 13 2022 01:37:08 by
1.7.2
