Polybot Grenoble / Mbed 2 deprecated CDF2019

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
CharlesBl
Date:
Mon Mar 18 12:46:18 2019 +0000
Parent:
7:a59d1efdbfe1
Commit message:
modif conttroler

Changed in this revision

Controller.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Controller.lib	Fri Mar 15 21:57:22 2019 +0000
+++ b/Controller.lib	Mon Mar 18 12:46:18 2019 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/teams/Polybot-Grenoble/code/Controller/#6cf01b126695
+https://os.mbed.com/teams/Polybot-Grenoble/code/Controller/#f2ed347dfbda
--- a/main.cpp	Fri Mar 15 21:57:22 2019 +0000
+++ b/main.cpp	Mon Mar 18 12:46:18 2019 +0000
@@ -17,32 +17,7 @@
 
 Serial pc(SERIAL_TX, SERIAL_RX);
 
-InterruptIn button(USER_BUTTON);
-
-Ticker systick;
-int flag=0;
-
-void affiche(){
-    flag=1;
-}
-
-void released()
-{
-    button.disable_irq();
-    mcp.reset_encoder_value();
-    button.enable_irq();
-}
-
 int main()
 {
-    button.fall(&released);
-    systick.attach(&affiche,0.1);
-    
-    while(1){
-        if(flag==1){
-            flag=0;
-            pc.printf("%i - %i\n\r", mcp.read_encoder_value_M1(),mcp.read_encoder_value_M2() );    
-        }
-        wait(0.01);
-    }
+
 }
\ No newline at end of file