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 CetvrtiPetiTim010 by
main.cpp
00001 #include "mbed.h" 00002 00003 DigitalOut myled(LED1); 00004 00005 int main() { 00006 double on, off; 00007 on = 0.002; 00008 off = 0.002; 00009 00010 while (1) 00011 { 00012 for (int i = 0; i < 200; i++) 00013 { 00014 myled = 0; 00015 wait(on); 00016 myled = 1; 00017 wait(off); 00018 00019 on += 0.00001; 00020 off -= 0.00001; 00021 } 00022 00023 00024 for (int i = 0; i < 400; i++) 00025 { 00026 myled = 0; 00027 wait(on); 00028 myled = 1; 00029 wait(off); 00030 on -= 0.00001; 00031 off += 0.00001; 00032 } 00033 00034 for (int i = 0; i < 200; i++) 00035 { 00036 myled = 0; 00037 wait(on); 00038 myled = 1; 00039 wait(off); 00040 00041 on += 0.00001; 00042 off -= 0.00001; 00043 } 00044 00045 } 00046 00047 00048 }
Generated on Fri Jul 22 2022 08:21:15 by
1.7.2
