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.
main.cpp
00001 #include "mbed.h" 00002 00003 DigitalOut sw1(D12); 00004 DigitalOut sw2(D11); 00005 DigitalOut sw3(D10); 00006 DigitalOut sw4(D9); 00007 00008 //Timer timer; 00009 00010 static const float SW_1_TO_2 = 0.7f; // [s] 00011 //static const float SW_2_TO_3 = 1.0f; 00012 //static const float SW_3_TO_4 = 1.5f; 00013 00014 int main() { 00015 sw1 = 1; sw2 = 0; 00016 wait(SW_1_TO_2); 00017 sw1 = 0; sw2 = 1; 00018 while(1); 00019 return 0; 00020 }
Generated on Tue Jul 19 2022 00:21:13 by
1.7.2