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 "main.h" 00002 00003 Serial pc(USBTX , USBRX); 00004 DigitalOut ledg(LED_GREEN); 00005 DigitalOut ledb(LED_BLUE); 00006 int main() 00007 { 00008 ledb = 0; 00009 pc.printf("connecting..."); 00010 pc.printf("\n\n"); 00011 start_clock(); 00012 wait(3); 00013 ledb = 1; 00014 wait(1); 00015 while (true) { 00016 pc.printf("%2.4f" , get_time()); 00017 pc.printf("\n"); 00018 set_ventricle_logic(1); 00019 while (true){ 00020 v_pace_sq(34.2 , 0.08); 00021 ledg = 0; 00022 if (get_ventricle_logic() == 0){ 00023 ledg = 1; 00024 break; 00025 } 00026 wait(0.01); 00027 } 00028 wait(0.92); 00029 } 00030 }
Generated on Thu Jul 14 2022 20:54:55 by
1.7.2