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 LV1_Grupa4_Tim008_Zadatak4 by
main.cpp
00001 #include "mbed.h" 00002 00003 DigitalOut myled(LED1); 00004 00005 int main() { 00006 double t1 = 0.005, t2 = 0.005; 00007 00008 while(1) { 00009 00010 for(int i = 0; i < 200; i++) { 00011 myled = 0; 00012 wait(t1); 00013 myled = 1; 00014 wait(t2); 00015 t1 += 0.0000245; 00016 t2 -= 0.0000245; 00017 } 00018 00019 for(int i = 0; i < 400; i++) { 00020 myled = 0; 00021 wait(t1); 00022 myled = 1; 00023 wait(t2); 00024 t1 -= 0.0000245; 00025 t2 += 0.0000245; 00026 } 00027 00028 for(int i = 0; i < 200; i++) { 00029 myled = 0; 00030 wait(t1); 00031 myled = 1; 00032 wait(t2); 00033 t1 += 0.0000245; 00034 t2 -= 0.0000245; 00035 } 00036 00037 } 00038 }
Generated on Sat Jul 16 2022 22:24:01 by
1.7.2
