Evenement

Files at this revision

API Documentation at this revision

Comitter:
gr91
Date:
Tue Nov 10 12:27:56 2020 +0000
Parent:
3:97b80cd12e6b
Commit message:
nom de la fonction isr

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 97b80cd12e6b -r c5eca221f729 main.cpp
--- a/main.cpp	Mon Nov 09 16:05:37 2020 +0000
+++ b/main.cpp	Tue Nov 10 12:27:56 2020 +0000
@@ -2,13 +2,13 @@
 // interuption
 DigitalOut ledr(PB_4);  //LED_red  Arduino D5
 InterruptIn DOWN(PB_0);  //joystick down  Arduino A3
-void led(void)
+void inverser_led(void)
 {
     ledr=!ledr;
 }
 int main()
 {
-    DOWN.rise(&led);   // fall pour front descendant
+    DOWN.rise(&inverser_led);   // fall pour front descendant
     ledr=1; // led r eteinte
     while(1) {
         wait(0.01);