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 Timer TSGtimer; 00003 00004 DigitalIn TSG(dp17,PullUp); 00005 DigitalOut DLEDG(dp14,0); 00006 Serial pc(USBTX, USBRX); 00007 00008 int hoges,hogee; 00009 int main() { 00010 pc.baud(115200); 00011 while(1) { 00012 00013 DLEDG = !TSG; 00014 if ( TSG == 1 && 0 != TSGtimer.read_ms()){ 00015 TSGtimer.stop(); 00016 TSGtimer.reset(); 00017 } 00018 else if ( TSG == 0){ 00019 TSGtimer.start(); 00020 hogee=TSGtimer.read_ms(); 00021 printf("\033[4;1H"); 00022 printf("\033[K"); 00023 printf("TSG-on times by msec %d\n", hogee); 00024 } 00025 } 00026 }
Generated on Mon Aug 1 2022 00:19:55 by
1.7.2