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
Fork of Timer_HelloWorld by
main.cpp
00001 #include "mbed.h" 00002 00003 Timeout response; 00004 DigitalIn button (USER_BUTTON); 00005 DigitalOut led1(LED1); 00006 00007 void led_set(void); 00008 void led_clear(void); 00009 00010 int main() { 00011 while(true) { 00012 if(button == 0){ // Butona basıldı ise 00013 response.attach(&led_set, 3.0); 00014 } 00015 printf("buton girisi bekleniyor!\n"); 00016 wait(0.2); 00017 } 00018 } 00019 00020 void led_set(void) { 00021 led1 = 1; 00022 response.attach(&led_clear, 2.0); 00023 } 00024 00025 void led_clear(void) { 00026 led1 = 0; 00027 }
Generated on Sat Jul 16 2022 03:29:24 by
1.7.2
