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.
Dependencies: mbed mbed-STM32F103C8T6
main.cpp
00001 #include "stm32f103c8t6.h" 00002 #include "mbed.h" 00003 00004 DigitalOut ledtest(PC_13); 00005 int i=100; 00006 int main() { 00007 00008 00009 while(1) { 00010 00011 ledtest = 0; // LED is ON 00012 wait_ms(i); // 200 ms 00013 ledtest = 1; // LED is OFF 00014 wait_ms(i); // 1 sec 00015 i=i+100; 00016 if(i>=1000) 00017 { 00018 i=100; 00019 00020 } 00021 } 00022 }
Generated on Sat Jul 16 2022 22:40:41 by
1.7.2